SecResKitScriptDocs.txt

(24 KB) Pobierz
 NAME: CreateLocalUser.ps1 
 DESCRIPTION:
 Creates a local user on a local or remote machine. 
 This script allows you to enter from both the command
 line and from a csv text file. It supports prototyping
 of the command via the -whatif parameter. Using this 
 script you can set the user name, password, and description.
 The user is an enabled user upon completion of the script.
 It does not, however, allow you to bypass security restrictions
 governing password policy. The password must meet the requisite
 complexity requirements.

 PARAMETERS: 
 -computer computer upon which to run the command
 -user Name of the user to create. Required
 -password Password for the new user. Required
 -description of user account
 -text reads user, password, and description from a 
  csv file with these exact headings. The format is:
  user, password, description
  testuser1, P@ssw0rd11, "from script"
  When the -text parameter is used, the -user, -password
  and -description parameters are ignored
 -whatif Prototypes the command. Works with both 
  command line input and text input
 -help prints help description and parameters file
 -examples prints only help examples of syntax
 -full prints complete help information
 -min prints minimal help. Modifies -help

 NAME: DisplayFileMetaData.ps1
 DESCRIPTION:
 Sample on a local or remote machine. 

 PARAMETERS: 
 -computer computer upon which to run the command
 -whatif Prototypes the command
 -help prints help description and parameters file
 -examples prints only help examples of syntax
 -full prints complete help information
 -min prints minimal help. Modifies -help

 NAME: EvaluateServices.ps1
 DESCRIPTION:
 Counts services on a local or remote machine. It then
 produces a report that tells how many services are auto,
 how many are manual, and how many are disabled. It then
 counts how many accouts are used: localsystem, localservice,
 networkservice, and user defined accounts. Finally, it 
 prints detailed information. An option allows you to display
 the report when it is finished.

 PARAMETERS: 
 -computer computer upon which to run the command
 -list produces the service report
 -outfile writes report to a temporary file
 -display when used with -outfile displays report in
  wordpad. When used alone is ignored
 -help prints help description and parameters file
 -examples prints only help examples of syntax
 -full prints complete help information
 -min prints minimal help. Modifies -help

 NAME: FindAdmin.ps1
 DESCRIPTION:
 Lists the members of the Domain Admins group. It will translate
 group memberships, and nested group memberships and produce a list
 of the members of the Domain Admins group and how they obtain that
 membership by printing the group that contains the user account. 
 Groups that are members of the Domain Admins group are also printed
 out as well as how they obtain their membership. Additionally, the
 distinguished name of each user and group is displayed. 

 PARAMETERS: 
 -domain domain to query for group membership
 -group the group to connect to and to query. Domain admins by default
 -query causes the query to execute
 -whatif Prototypes the command prior to executing the query
 -help prints help description and parameters file
 -examples prints only help examples of syntax
 -full prints complete help information
 -min prints minimal help. Modifies -help

 NAME: FindServiceAccounts.ps1
 DESCRIPTION:
 Identifies services and their startup accounts on a local 
 or remote machine. This script can produce a complete list
 of the services and their accounts for one or more computers.
 It can also search for user defined (non-standard) service
 accounts, as well as search computers for a particular user
 defined service account. 

 PARAMETERS: 
 -computer computer upon which to run the command
 -text path to a text file containing computer names one name
  per line
 -user lists all services starting with a particular 
  account name
 -list lists all services and start account names
 -nonstandard lists services and start account names that
  do not use localsystem, localservice, or networkservice
 -help prints help description and parameters file
 -examples prints only help examples of syntax
 -full prints complete help information
 -min prints minimal help. Modifies -help

 NAME: ListUserLastLogon.ps1
 DESCRIPTION:
 This script will list the lastlogon date of a 
 specific user onto a local or remote domain. The
 script will allow multiple users to be supplied 
 for the -users parameter. All users who have logged
 on will have their last logon dates displayed if the
 script is run with the -all parameter. This script 
 supports prototyping by using the -whatif switch. 

 PARAMETERS: 
 -domain the domain to query for user information
 -user the user or users to query for lastlogon time.
  Users who have never logged on will not have a time
  displayed
 -all displays all users lastlogon time
 -whatif Prototypes the command
 -help prints help description and parameters file
 -examples prints only help examples of syntax
 -full prints complete help information
 -min prints minimal help. Modifies -help

 NAME: LocateDisabledUsers.ps1 
 DESCRIPTION:
 Locates disabled users a local or remote domain. 
 The script can run locally or remotely, and can query
 multiple domains by accepting more than one value for
 the -domain parameter. The script also supports using
 -whatif to prototype the command prior to execution

 PARAMETERS: 
 -computer computer upon which to run the command
 -domain the domain or domains to query for locked 
  out users
 -query executes the query
 -whatif prototypes the command.
 -help prints help description and parameters file
 -examples prints only help examples of syntax
 -full prints complete help information
 -min prints minimal help. Modifies -help

 NAME: LocateLockedOutUsers.ps1 
 DESCRIPTION:
 Locates locked out users a local or remote domain. 
 The script can run locally or remotely, and can query
 multiple domains by accepting more than one value for
 the -domain parameter. The script also supports using
 -whatif to prototype the command prior to execution

 PARAMETERS: 
 -computer computer upon which to run the command
 -domain the domain or domains to query for locked 
  out users
 -query executes the query
 -whatif prototypes the command.
 -help prints help description and parameters file
 -examples prints only help examples of syntax
 -full prints complete help information
 -min prints minimal help. Modifies -help

 NAME: LocateOldComputersNotLogon.ps1 
 DESCRIPTION:
 Locates computer accounts in a local or remote
 domain that have not logged on for a specified 
 number of days. The -domain parameter controls the
 domain to query. By default the local domain is used.
 The -days parameter controls the number of days since
 logon. By default the number of day is set to 30.This 
 script supports prototyping by using the -whatif 
 switch.

 PARAMETERS: 
 -computers The computer or computers account to query
 -domain The domain to query
 -days The number of days since logon
 -all queries for all comptuer accounts in the domain
 -query Executes the query
 -whatif Prototypes the command
 -help prints help description and parameters file
 -examples prints only help examples of syntax
 -full prints complete help information
 -min prints minimal help. Modifies -help

 NAME: LocateOldUsersNotLogOn.ps1
 DESCRIPTION:
 Scans a local or remote domain for user accounts
 that have not logged onto the domain for an extended
 period of time which is specified in days. The default
 value of days is 30, but this can be modified by using
 the -days parameter. The default domain is the current
 domain, but this can be modified by using the -domain
 parameter. This script supports prototyping by using
 the -whatif switch. 

 PARAMETERS: 
 -domain the domain to query. Optional
 -days the number of days since logon. Optional
 -all returns all users who have not logged on within
  the time specified by -days
 -users queries for last logon information for specific
  user accounts
 -whatif Prototypes the command
 -help prints help description and parameters file
 -examples prints only help examples of syntax
 -full prints complete help information
 -min prints minimal help. Modifies -help

 NAME: ScanConfig.ps1
 DESCRIPTION:
 The ScanConfig.ps1 script produces a listing of the following information:
 Installed software updates, Com objects, Network Adapters, Network config, 
 Auto run, Services, unsigned drivers, and the firewall policy. This script 
 only runs locally, it will write the output to a temp text file which 
 displays when the script has completed. You can choose a  specific test by 
 using the -test parameter, or you can select a complete report by using the 
 -all parameter.  This script supports prototyping by allowing 
 the use of the -whatif parameter. 

 PARAMETERS: 
 -test the command to run. < com, service, update, networkAdapter, 
  networkConfig, unsigned, autoStart, firewall >
 -all produces the complete report
 -whatif Prototypes the command
 -help prints help description and parameters file
 -examples prints only help examples of syntax
 -full prints complete help information
 -min prints minimal help. Modifies -help

 NAME: ScanForSoftware.ps1
 DESCRIPTION:
 Scans for the existence of a specific piece of software. 
 This can be a partial name. Locates software that has been
 installed by using MSI installer. It will also produce a
 list of all MSI installed packages on the machine.This script
 works on local or remote machines.

 PAR...
Zgłoś jeśli naruszono regulamin