
PoshTip #18 – Checking for string within string
PoshTip #18 – Checking for string within string With PowerShell, you can determine whether or not a given substring can be found within another string. Read More
PoshTip #18 – Checking for string within string With PowerShell, you can determine whether or not a given substring can be found within another string. Read More
PoshTip #17 – Copy files to a new location To copy a file from one folder to another, you can use the Copy-Item cmdlet :
1 |
Copy-Item -Path C:\folder1\file1.txt -Destination c:\folder2\file1.txt |
You Read More
Enable DHCP server logging 1/ Start the DHCP MMC 2/ Select “properties” on your DHCP Server 3/ And select “Enable DHCP audit logging” checkbox Now, Read More
PoshTip #16 – Writing to text file If you need to write into a text file, you can use Add-Content PowerShell cmdlet :
1 2 |
$String = "Test" Add-Content C:\output.txt $String |
You Read More
PoshTip #15 – Accessing Windows Registry Accessing the registry is as easy as accessing the file system. Type the following command :
1 |
PS> Set-Location HKLM:\ |
Now you Read More
PoshTip #14 – Find Certificates that are about to expire Here is a quick way to list the days remaining before the certificates on Read More
PoshTip #13 – How to Create a PowerShell Profile A PowerShell profile is a PowerShell script that runs automatically when you start a PowerShell console. Read More
PoshTip #11 – Active Directory PSDrive One of cool feature enabled by the Active Directory module is the “Active Directory PSDrive”. You can browse your Read More