Search This Blog

Powershell

BASIC POWERSHELL STUFF

 Article
 Arrays
 Operators
 Loops and Switches
 Functions
 Error Handling

ADVANCED POWERSHELL STUFF

 Article  Comment
 Logon and Startup Script Manager This script can manage all global and member-based logon and startup scripts, so there is only need for a single GPO in your organization.
 Scriptblock Execution on Remote Machine This script can run PoweShell scripts (multiline) on remote machine
 Get User Information from AD Get User information from Active Directory
 Get Computer Information from AD Get Computer information from Active Directory

Rename files by replacing a string in the name

Get-ChildItem -Path "C:\Users\janos\Downloads\Tom and Jerry\" | Rename-Item -NewName { $_.name -replace 'Tom and Jerry - ','E' }