Get-ADUsers in group named like and list recursive groups
Hi.We have had a large organizational change and I have to change security groups and user rights accordingly for the whole organization accordingly.For that reason I need to list all users MemberOf...
View ArticleCreating a PSUserAgent for Microsoft Office Outlook
So, I am currently trying to retrieve information via "Invoke-WebRequest" from Office 365's autodiscover (https://autodiscover-s.outlook.com/autodiscover/autodiscover.xml). My code currently returns...
View Articletest-connection fails because multiple IP's registered in DNS for computer
HiJust started to learn PowerShell, created my first practical script which pings a list of desktops and laptops and if they are reachable exports out the remaining c: drive free space into a .csv...
View Articleusing the -AsHashTable and -AsString parameters with Group-Object cmdlet
Hello I have seen a few examples (cannot lay my hands on one now unfortunately) where people has used -AsHashTable and -AsString with the Group-Object cmdletcan someone place explain a bit more about...
View Articlewait for a windows to appear ?
A small vendor gave us some software to install and they did not provide any silent way to install it. -s, -q, /q, -q, -silent etc... none of those are available. So I need to automate the...
View ArticleFind Stale Accounts in Active Directory
Everyone who has managed Active Directory knows that keeping it free of “stale” accounts is a tough task. Typically no one cares about this until it’s time for the Microsoft True Up. Then we’ve got...
View ArticlePowerShell + AD + Pester : Create new user using template - Day 1
So finally I tried my hands on writing a Function which does a better job at this.Read More
View Articleforce window to be active and on top?
I call an .EXE, I then disable the mouse and keyboard. The .EXE that is called throws up a dialog window that I try to activate. This is running from the RUN key in the...
View ArticlePrint list of (mostly) empty folders - script optimization, elegance
I pieced the following together to "scan" a folder structure and output line-terminated paths of folders that contain no files, directly or indirectly. The script expects an argument of the top-level...
View ArticleCSV Array Script Issues
Hi All,Just posting because I'm having a little trouble with a script I'm working on that will copy some of our user's Outlook Files folder to a remote server. First, I'm storing their computer names...
View ArticleCompressing&Decompressing Sites Using Powershell Command/Script.
What powershell command/script would be needed to tell a browser to send a note on the fly to compress a requested site by eliminating unnecessary bits in order to reduce the site's size to one third...
View ArticleHow to best handle "No matches found"
Hi All,Am new to PowerShell and still learning my way about.I am running the following snippet of code ...$event= Get-EventLog -LogName Security -ComputerName [DCServer] -InstanceId 4740 -Newest 1 |...
View Articletest-connection vs win32_pingstatus
Hi, I have little question to Richard Siddaway's book, if I may:) . In "powershell and WMI", in section "best practise" Richard has written like this:"Use Test-Connection -ComputerName $computer...
View ArticleAdding users in active directory?
Normal 0 false false false EN-AU X-NONE X-NONEHow would I write a powershell script to add an Active Directory user to an existing group?
View ArticleDetect .NET Framework versions installed
This script will detect the various .NET Framework versions installed on the local or remote computer(s).Read More
View ArticleUsing PowerShell to View File/Folder Permissions – Pt. 1
This post will show you – very concisely and elegantly – how I go from what PowerShell provides by default, to the custom, user-friendly output/function I authored.Read More
View ArticleThe Golden Isle of the Mediterranean
cheap adidas trainers It must be fantastic to be living close to the coast. You can laze around on the beach. You can dive into the clear sea waters. If you are the adventurous type, you can try scuba...
View ArticleShow message box (form) while script is running
Hello,I´m working on a installtion script which should install a .msi package and while the installation is running the user should see a message box (form) "installation running".My problem is to get...
View ArticleReport of members of local Administrators group
I found this here: (http://powershell.com/cs/media/p/376.aspx)cls $ErrorActionPreference="SilentlyContinue" Get-Content (ENTER PATH TO YOUR INPUT FILE HERE) | foreach {...
View Article