Get all DHCP server and scope information for a domain
I am after some assistance in creating a powershell script to run that will allow me to get all DHCP server and scope information. Below is what I need the script to do. Thank you.1) It will first run...
View ArticleWho will be announced as the next Powershell Guru? Read more about April...
What is TechNet Guru Competition? Each month the TechNet Wiki council organizes a contest of the best articles posted that month. This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE...
View ArticlePowershell and robocopy Write-Progress and a log file
I'm trying to have a progress bar AND create a log. When I run the following (only writes a progress bar), it runs perfect... but no log robocopy $MyDocuments ($USB + "\Migrations\" + $PC + "\" +...
View ArticleHow to email a report on available Windows Updates
I have been using the module "PSWindowsUpdate" to automate updates on our client machines at specific times, however, now I have been asked to also have a report on which updates are available and...
View ArticleRobocopy powershell script with changing source.
I have to move a large amount of backups from one storage to another during off hours. I have written a script to move the files no problem but I want to improve it by making the source point at a text...
View ArticleCopy a folder using Copy-Item
When first time run Copy-Item "\\server1\c$\apps\folder1" "\\server2\c$\apps\" -recurse -forcethe folder1 is copied in \\server2\c$\apps\When run the same script above again, the folder1 is copied in...
View ArticleIs there a way to find out what servers volumes are compressed?
Does anyone have a way of checking server volumes to see if they are compresed or not? I have a list of servers that i need to check for free space etc and i'd like to know if any of the volumes are...
View ArticleSet-ADExpiration
Hi,Im testing my script on how to bulk disable AD users with DateTime properties using the simplest command:Set-ADAccountExpiration -Identity TestAccount -DateTime"05/01/2019 05:31 PM"Now as I validate...
View Articleconvert .eml to .msg
I have 500000 .eml files that needs to be converted to .msg file and save in local folder.I want to know if we have any powershell command to do so?Or any other efficient method to achieve...
View Articleneed help to text a script for Remove-ADGroupMember
hi all,i need to write a script that when executed remove the user that execute it from all the ad group it is member, or from a specified groupplease can u help me text itthankscheers
View Article2 OU and one Search Level
Hi allI am no good at scripting and need a little help, I have taken a look at the forums and cannot get what I need working.I have the following which is working fine.Get-ADUser -Filter * -SearchBase...
View ArticleList Version of MS Office
HelloI want to edit a powershell script that gives me the different version of MS Office install the PCs of a very specific OU. Thank you for your helpMahdi, Mehdi
View ArticleI want to export bulk group membership from AD
Hi, I am new with powershell. I have exported group name from using powershell. Now i want to get members of exported group. I need report Like Group name and members detail. for example.GroupName...
View Article90 day inactive user report using PowerShell
Hi everyone,I'm wanting to generate a report of inactive users for the past 90 days using PowerShell, and being a PowerShell newbie need a bit of help getting it over the line. In addition to 90 day...
View ArticleApplying Exchange Mailbox Permissions to AD users in a specific OU
I would like to apply the following PowerShell command to all users in a specific OU:Add-MailboxFolderPermission -Identity Test:\ -User Default -AccessRights Reviewer How do I do this?
View Articlecomparing csvs
I have 2 CSV files wirh multiple named columns where one column - ID - is identical in both and other column of my interest where I need to check if for the same ID the value present in that column...
View ArticleQuery all top ten events for a event id on a Event Log
Hello,First let me say my Posh is very rudimentary and I am fairly new.I am trying to get all events on a list of servers and write them down on a CSV, so far I modify a bit a script I use for SQL...
View ArticleAdd additional values to an existing property of a PSCustomObject
I have started to use PSCustomObjects. I am reading the information from a CSV with lines of data and a header row. I would like the ability to add addition values to the SAN property after the fact....
View ArticleWhy is -Verbose not working with Invoke-Command?
I have the following script: try {Invoke-Command-Computer $Server -ScriptBlock{Get-ChildItem-Path $Directory |Where{$_.Name-Match"$DB"}|Remove-Item-confirm:$false -Recurse...
View ArticleHow to test Get-ChildItem for no files as part of Invoke-Command?
I have the following script:try {Invoke-Command-Computer $Server -ScriptBlock{ param ($dir, $name)Get-ChildItem-Path $dir |Where{$_.Name-Match"$name"}|Remove-Item-confirm:$false...
View Article