Perl
Active Directory Cookbook, 2nd edition (Perl-only) (All scripts)
Chapter 2
Change domain mode
Display domain netbios name
List domains
Raise domain functional level
Raise forest functional level
Remove trust
Reset trust
Verify trusts
View trusts
View trusts WMI
Chapter 3
Disable GC logon requirement
Enable GC
Find closest DC
Find closest DC via DNS
Find DC site
Find DCs
Find DCs and GCs in a site
Find FSMOs
Find GCs
Move DC to different site
Set reliable time source
Transfer FSMO
Chapter 4
Bit-wise search
Create dynamic object
Create object
Delete object
Delete object v2
Display attributes
Display RootDSE
Dynamically link class
Enable paging
Fast bind
Modify bit flag
Modify default dynamic object ttl
Modify object
Modify object v2
Move jsmith to new domain
Move object to new domain
Move object to new OU
Refresh dynamic object
Rename object
Search GC
Search objects
View create modify timestamps
View modify LDAP query policy
Chapter 5
Create OU
Create OU in container
Delete OU
Deleting child objects
Display OUs
Enumerate children
Enumerate children recursively
Link GPO to OU
Move child objects
Move OU
Number child objects
Chapter 6
Adding new upn suffix
Create inetorgperson
Create user
Create user in bulk
Enable or disable user
Find all users
Find disabled users
Find users about to expire
Modify default ADUC displayname
Modify multiple users
Move user
Must change passwd
Not logged on recently
Password about to expire
Password about to expire2
Prevent passwd change
Prevent passwd expiration
Rename user
Set account expiration
Set password
Set primary group
Set profile attributes
Set useraccountcontrol
Transfer user groups
Unlock user
View lockout password policy
View managed objects
View user group membership
Chapter 7
Add group member
Changing group scope or type
Create group
Delegate control of group members
Enable universal group caching
Remove group member
Resolve primary group id
View group membership
View nested group membership
Chapter 8
Bind to default computer container
Change computer quota
Change default computer container
Create computer
Create computer for user
Find computers based on os
find inactive computers
Join computer to domain
Move computer
Rename computer
Reset computer
Chapter 10
Apply security filter
Apply WMI filter
Backup a GPO
Block inheritance on an OU
Copy GPO
Create a GPO
Create GPO link
Delete GPO
Disable settings in a GPO
Find GPOs in a domain
Import settings into a GPO
List GPO links
Restore a GPO
View GPO settings
Chapter 11
Add ANR attribute
Add duplicate user attribute
Add GC attribute
Create attribute
Create class
Deactivate class
Enable schema update
Find class types
Find linked attributes
Find mandatory and optional classes
Generate guid
Index attribute
Nonreplicated and constructed attributes
Reload schema
View attribute
View class
Chapter 12
Change KCC interval
Cover multiple sites
Create site
Create site link
Create site link bridge
Create subnet
Delete site
Disable auto site coverage
Disable KCC
Disable transitivity schedules
Find bridgehead servers for site
Find client site
Find ISTG
Find links for site
Force host to site
List connection objects
List servers in a site
List sites
List subnets
Modify site link
Modify site link cost
Move server
Set bridgehead server
Transfer ISTG
Trigger KCC
Chapter 13
Change intersite replication interval
Change intrasite replication interval
Changing replication consistency
Compare two domain controllers
Compare unreplicated changes
Finding conflict objects
Force replication
View object metadata
Chapter 14
Add DNS suffix
Clear DNS cache
Convert zone to AD integrated
Create forward zone
Create resource record
Create reverse zone
Delegating control of zone
Delete resource record
Enable scavenging
Prevent DNS registration of all records
Prevent DNS registration of certain records
Query resource records
Set DNS server settings
View zones
Chapter 15
Display object ACL
Enable anonymous access
Enable list object access mode
Encrypt traffic with ADO
Encrypt traffic with ADSI
Forcing kerberos to TCP
Chapter 16
Change tombstone quota
Enable dcpromoui logging
Enable diagnostics logging
Enable DNS debug logging
Enable gpo logging
Enable kerberos logging
Set default quota
View DNS performance statistics
Chapter 17
Change garbage collection period
Change tombstone lifetime
Enable DIT logging
Enable tombstone logging
Initiate an online defrag
Chapter 18
Add or remove replica
Change replication delays
Create an application partition
Delegate control for application partition
Delete an application partition
Find application partitions
Find application partitions for a server
Find replica servers
Set reference domain
Chapter 20
Query RootDSE using Perl Net-LDAP
Query RootDSE using Perl Win32-OLE
Active Directory, 3rd Edition (Perl-only) (All scripts)
Chapter 20
Create OU
Create User
Delete Object
Delete Object2
OpenDSObject
OpenDSObject Secure
OpenDSObject Secure Inputbox
Simple ADSI
Simple VBScript
Chapter 21
Example1
Example2
GetEx
GetInfoEx
PropertyEntry
PropertyValue
Put
PutEx
Walk PropertyCache
WriteCache
Chapter 22
Filter Results
Simple Search
Chapter 23
Add group member
Add many group members
Create group
Create group v2
Create many users
Create user
Create user - WinNT
Evaluate group membership
Evaluate group user membership
Modify user - LDAP
Modify user - WinNT
Unlocker - LDAP
Unlocker - WinNT
Chapter 24
Dump store details
Enumerate disconnected mailboxes
Enumerate store details
Mail disable contact
Mail disable group
Mail disable user
Mail enable group
Mail enable user
Mailbox disable user
Mailbox enable user
Move mailbox
Purge mailbox
Reconnect mailbox
View mailbox size
Chapter 25
Create share
Display print jobs
Display print queue status
Enum resources
Enum sessions
Enum shares
List print queues
Show users
Chapter 26
Create ACE
Create SD
Delegate rights
Chapter 27
AD GC Attributes
Create attribute
Create class
Create class instance
Find GC attributes
Get Schema FSMO
Get Schema FSMO v2
Schema cache reload
Transfer Schema FSMO
Wait for new Schema FSMO
Chapter 29
Authenticating via WMI
Display Event Log events
Display services
Enumerate disks
Enumerate objects in WMI
Enumerate trusts via WMI
Find AD trust failures via WMI
Find computer objects in AD via WMI
Find Event Log events via WMI
Find pending replication events in AD via WMI
Find user objects in AD via WMI
Robust service restart using WMI
Show dependent services
WQL Search example
Chapter 30
Create resource records
Create zone
Find resource records
List zones
Restart DNS server service
Set DNS server properties
DNS on Windows Server 2003 (Perl-only) (All scripts)
Chapter 14
Configure name server settings
Create a zone
Create an A and PTR record
Enumerate all logical disks
List resource records
Perform a WQL Query
Perform an SRV record query
Print name server stats
Print zone list
Restart the DNS Server service
Exchange Server Cookbook (Perl-only) (All scripts)
Chapter 2
List all connectors in Exchange
List Exchange servers
Search Active Directory for Exchange servers
Chapter 3
Change the functional level of a forest
Force Exchange to run the topology discovery process
Chapter 4
Determine the Exchange role of a server
Interrogate and change message tracking properties
Chapter 5
Access logon
Bulk add from excel
Create Address List
Create contact
Create mail enabled group
Create mailbox
Create qdg
Create user and mailbox
Delete mailbox
Gal hide
List delegates
Mailbox size
Set recipient limit
Show sender restrictions
Chapter 6
Create Database
Create Storage Group
Delete Database
Enum mailboxes
List Storage Group
Move Databases
Move logs
Toggle circular logging
Chapter 7
Delete message from queue
Enumerate queues
Inspect queue
Chapter 8
Enable Freedocs
Enable OWA blocking
Set OWA timeouts
Toggle OWA spellcheck
Chapter 9
Create local replica of all folders
Create Public Folder
Find all Public Folder replicas
Find all replicas on server
Force all Public Folder rep
Force single Public Folder rep
Get Public Folder tree properties
Managing Enterprise Active Directory Services (Perl-only) (All scripts)
Chapter 3
Listing01_Connecting_Net-LDAP
Listing02_Search_RootDSE_Net-LDAP
Listing03_Shortcut_RootDSE_Net-LDAP
Listing04_Search_Users
Listing06_Manipulate_Object_Net-LDAP
Listing07_Server-side_Sort_Net-LDAP
Listing08_Server-side_Sort_And_Paged_Net-LDAP
Chapter 4
ADO example
Delete an object
Manipulate attributes
Perform an LDAP bind
Simple create user
Chapter 5
Listing01_RootDSE
Listing02_Enum_Users
Listing03_WQL_Get_Computers
Listing04_Event_Notification
Chapter 7
Listing02_List_Domains
Listing04_Create_UPNSuffix
Listing07_Enable_GC
Listing09_List_Trusts
Listing11_Create_OU
Listing13_Find_FSMOs
Listing15_Transfer_PDC
Chapter 8
Listing01_DnsCmd
Listing02_Finding_Servers_With_DNS
Listing03_Create_A_Record_Net-DNS
Listing04_Move_Host_DnsCmd
Listing05_Create_Configure_Zone_DnsCmd
Listing06_Configure_All_NS_In_Zone
Listing07_Verify_All_NS_In_Zone_Same
Listing08_Query_To_Test_DNS
Listing11_DC_RR_Validation
Chapter 9
Listing05_Create_Site
Listing07_Delete_Site
Listing09_Create_Subnet
Listing11_Iterate_Subnets
Listing13_Create_Link
Listing15_Links_For_Site
Listing17_Moving_Server
Listing19_List_Connections_IadsTools
Listing20_Trigger_KCC_IadsTools
Listing23_Disable_KCC
Listing24_Retrieve_MetaData_IadsTools
Listing26_Forcing_Sync_IadsTools
Listing28_Rep_Partners_IadsTools
Chapter 10
Listing02_Retrieve_SchemaContainer
Listing04_Retrieve_Schema_FSMO
Listing06_Transfer_Schema_FSMO
Listing07_Set_Schema_FSMO_Registry
Listing10_Schema_Ext_Verification
Listing13_Import_LDIF
Listing14_Convert_Str_GUID_To_Bin
Listing15_UNIX_Create_GUIDs
Listing15_Verify_and_Extend_Schema
Chapter 11
Listing02_Create_User
Listing06_Find_All_Users
Listing08_Unlock_User
Listing10_Moving_User
Listing13_Create_Sec_Univ_Group
Listing15_Add_Remove_User_From_Group
Listing17_Iterating_Group
Listing19_Changing_Group_Scope
Listing22_Create_Computer
Listing23_Finding_Inactive_Computers
Listing25_Create_PrintQueue
Chapter 12
Listing04_Security_EvtSearch
Listing06_Security_EventSink
Listing07_Security_GetSDDL
Listing08_Security_SDDLMap
Listing10_Security_SidToGroup
Listing12_Security_Extended_Rights
Chapter 13
Extra_Refresh_Policy
Listing14_Create_GPO_Link
Listing15_Delete_GPO_Link
Listing_Delete_All_GPO_Links
Windows Server 2003 Networking Recipes (Perl-only) (All scripts)
Chapter 1
Configure Alternate IP
Configure DHCP
Configure DNS servers
Configure gateway metric
Configure NetBIOS over TCP
Configure WINS NetBIOS parameters
Configure WINS servers
Enable dead gateway detection
Enable dynamic DNS
Rename computer
Set static IP
Chapter 3
Reset Windows Firewall
Chapter 5
Routing IP reset
Chapter 6
Configure IAS lockout
Export IAS configuration
Register local IAS Server
Stop IAS service
Unlock account
Chapter 7
Configure IPSec exemptions
Configure stateful protection
Disable IPSec hardware acceleration
Chapter 8
Restart print spooler service
Start print spooler service
Stop print spooler service
Chapter 9
Display TCP settings
Windows Server 2003 Security Cookbook (Perl-only) (All scripts)
Chapter 2
Disable local admin
Enable screen saver locking
Rename domain admin
Rename guest account
Rename local admin
Chapter 3
Configure TCP filtering
Enable Netbios over TCP
Chapter 10
Display file owner
Modify file owner
Chapter 11
Running a command
Running a command with Exec
Chapter 12
Add user to DNS Admins
Clear DNS Cache
Convert zone to AD-integrated
Create a mail forwarder
Delete the Root Hints
Disable dynamic updates
Disable Recursion
Enable Do Not Use Recursion settng
Enable secure dynamic updates
Chapter 15
Configure web permissions
Enable anonymous-only access in IIS
Enable FTP authentication
Enable NTLM Authentication in IIS
Enable SSL
Chapter 17
Add account to TS
Add user to Remote Desktop Users
Configure encryption level for all TS sessions
Configure remote control
Enable remote desktop
Modify permissions for TS account
Set RDP security level
TS prompt for password
Windows Server Cookbook (Perl-only) (All scripts)
Chapter 1
ADO authentication example
Append to a file
Authenticate and enumerate the disks on a system
Create an Excel spreadsheet of running processes
Enumerate the disks on a system
Error checking example
Print the contents of an Excel spreadsheet
Print the running processes to a file
Chapter 2
Activate
Create env variable
Disable activate notification
Disable manage server screen
Disable manage server screen2
Disable shutdown tracker
Disable windows update
Display datetime
Display failure options
Display pagefile
Display startup
Expand env variable
Force shutdown server
Install windows component
Join computer
Print env variables
Print system info
Print uptime
Reboot server
Rename computer
Rename computer domain
Reset computer
Set datetime
Set startup delay
Sets failure options
Shutdown server
Chapter 3
Analyze disks
Chkdsk
Compress volume
Configure user quota
Create virtual drive
Defrag disk
Disk readonly
Enable disk quotas
Find large files
Format volume
List disks
List mapped drives
Map drive
Set drive label
Set drive letter
View quota usage
Chapter 4
Compare files
Compress file
Compress folder
Create junction
Create share
Create shortcut
Delete file
Delete file wmi
Delete folder
Delete share
Find open file process
Find shortcuts
Find zip files
Hide file
Make file readonly
Print file properties
Print folder properties
Publish share in AD
Rename copy file
Replace file
Sdelete
Take ownership
View shares
Chapter 5
Alternate creds wmi
Delete schedule task
List scheduled tasks
Schedule task
Set domain login script
Set local login script
Spawn process with creds
Chapter 6
Kill process
Proc doctor
Proc props
Proc stats
Proc terminator
Search procs
Service proc
Set priority
View procs
Chapter 7
Create service
Dependent services
List services
Remove service
Robust restart
Search services
Service monitor
Service proc
Set service account
Set startup
Startup history
Stop start
Chapter 8
Archive log
Clear log
Create event
Create eventlog
Display events
Event watcher
Eventlog size
Search events
Search multiple
Set max size
Set retention
Chapter 9
Create key
Delete key
Export reg
Import reg
Set max size
Set value
Set value wmi
Chapter 10
Display net
Enable dhcp
Enable filtering
Find site
Flush dns
Force host
Install ipv6
Netstat nr
Register dns
Release all
Release ip
Renew all
Renew all2
Route add
Route print
Set ip
Chapter 11
Enable screensaver locking
Mass admin password change
Rename domain account
Rename local account
Chapter 12
Assign app
Config app pool identity
Config auth
Config ftp auth
Config qos
Config virtualdir perms
Config web perms
Create app pool
Create ftp
Create ftp site
Create redirect
Create redirect2
Create virtualdir
Create web
Display webs
Enable extensions
Enable logging
Enable metabase editing
Enable ssl
Enables app pool recycling
Install iis
Set ipdomain restrictions
Stop start web
Chapter 13
Add a ptr records
Clear server cache
Config checker
Config secondaries notify
Convert zone
Create ad stub zone
Create file stub zone
Create ns record
Create zone
Del a ptr records
Display dns server props
Enable debug logging
Enable scavenging
Enumerate forwarders
Install dns
Prevent cache pollution
Prevent dynamic updates
Query records
Set dns property
Set domain forwarders
Set forwarders
Stop start dns
View dns stats
View zones
Chapter 14
Activate scope
Authorize dhcp server
Config scope option
Config server option
Create reservation
Create scope
Create superscope
Display leases
Enable ddns
Export config
Set conflict detection
Set dns creds
View server options
Chapter 15
Change func level domain
Change func level forest
Create object
Delete object
Delete trust
Display forest structure
Enable diag logging
Enable gc
Find closest dc
Find fsmos
Modify object1
Modify object2
Move object
Move object domain
Paged search
Rename object
Reset trust
Search objects
Transfer fsmo
View trusts
View trusts
Chapter 16
Add member
Create computer
Create group
Create many users
Create user
Enable user
Join computer
Last login time
Modify attr for many users
Passwd lockout policies
Remove member
Rename computer
Reset computer
Set acct options
Set group scope
Set password
Set profile
Unlock user
View direct members
View group membership
View nested members
Chapter 17
Create address list
Create dl
Create mailbox store
Create query dl
Create storage group
List dcs
Mail disable contact
Mail disable user
Mail enable contact
Mail enable user
Mailbox delete
Mailbox enable user
Mailbox move
Mount dismount mailbox store
Purge mailbox
Reconnect mailbox
View disconnected mailboxes
View mailboxes sizes
Windows XP Cookbook (Perl-only) (All scripts)
Chapter 7
Check a Volume for errors
Compress a Volume
Configure disk quota for a user
Create a virtual drive
Display quota usage for users on a drive
Enable disk quotas
Enumerate mapped drives using WMI
Enumerate physical and logical disks
Find all files over a certain size
Make a volume read-only
Map a network drive
Chapter 8
Compare two text files
Compress a folder
Compress a folder with NTFS compression
Copy a file
Create a link using linkd
Create a share
Create a shortcut
Delete a file
Delete a file using WMI
Delete a folder
Delete a share
Display open file handles
Display properties and attributes of a file
Display properties and attributes of a folder
Display shares on a system
Enable the read-only attribute of a file
Find all shortcuts
Hide or unhide a file
Perform an action on several files at once
Publish a share in Active Directory
Rename a file
Replace a file that is in use
Securely delete a file
Transfer ownership of a file
Chapter 9
Create a Registry key
Delete a Registry value
Export a Registry key to a file
Import into the Registry
Set a Registry value
Chapter 10
Configure a service account
Display performance stats for a process
Display running processes
Display the properties of a process
Display the startup history of a service
Find processes consuming a lot of memory
Kill a process
List the antecedent and dependent services
Restart a service
Robust service restart
Run a command on a system
Run a program as a service
Schedule a task
Set the login script for a domain user
Set the login script for a local user
Set the startup type for a service
Using alternate credentials with WMI
Chapter 12
Add a route
Configure IP settings for a connection
Display network configuration for all connections
Display the AD site of a host
Enable IP Filtering for all adapters
Flush the local DNS cache
Install IPv6 on local host
Register DNS records for the local host
Release all DHCP IP addresses
Release all DHCP IP addresses using WQL
Renew DHCP lease for all adapters made by Intel
Renews all DHCP IP addresses
Set the AD site of the local host
Simulate -route print- command
Simulate the -netstat -an- command
Chapter 15
Add a member to a domain group
Add a member to a group
Create a computer account in Active Directory
Create a domain user account
Create a global security group account
Create a local group account
Create a local user account
Display direct members of a domain group
Display group membership of a user
Display members of a local group
Display password and account lockout policies
Display the nested members of a domain group
Enable or disable a domain user account
Enable or disable a local user account
Join a computer account to a domain
Remove a member from a domain group
Remove a member from a local group
Set profile-related attributes for a user
Set the password for a domain user
Set the password for a local user
Unlock a user
Chapter 16
Archive an Event Log
Clear an Event Log
Create a new event log
Create event in Application event log
Chapter 17
Enable screen saver locking for all users
Rename a domain account
Rename a local account
Chapter 19
Disable System Restore
|