Move and disable account based on String date
HeyCan someone please help as I have been struggling with this for some time.I have a script that updates "ExtensionAttribute15"(Didn't want to extend the schema as we don't use this attribute) with a...
View ArticleEditing an existing xml using Powershell DSC
HiHow can we edit an existing xml using PowerShell DSC. Any suggestions will suffice. RegardsSandip
View ArticleTrimming path from filename
I've got a script I'm using to check file information in a Bin directory: # file path in a variable $bindir = "D:\PATHTO\bin" if ( Test-Path -path $bindir -IsValid){ Get-ChildItem...
View ArticleCopy a remote Registry Key
Hi All,From my research it appears that Powershell can't rename a registry key natively? Very strange (if this is true, then someone in a Redmond based office needs a slap).I dropped to .net and found...
View ArticleUnable to concatenate simple filenames with other pre-defined variables to...
This is frustrating me immensely!What I am trying to do is very simple: Obtain a list of files in a folder; append that filename to a new path and submit to a bits-transfer job. I cannot get the paths...
View ArticleMD5 File and Hash Check
Hello Gurus! I've been working on a script for the past few weeks to check specific paths for certain file extensions and doing comparisons to the previous days check to find files that have been...
View ArticleEditing generalized registry folders
So I'm trying to create a powershell function to allow me to edit some registry values and folders. Editing the registry values presents no problems, however I'm having issues with the folders. I have...
View ArticleUploading Content to Azure Blobs
I use Azure Blobs on a regular basis. They’re generally really useful and help me through some tough situations. Working with Blobs is simple. You can interact with them using Visual Studio,...
View ArticleHow to Map Page Layouts to Terms for Navigation in SharePoint 2013 using...
In this article, let us see how to Map the Page layouts for various Terms using Powershell in SharePoint 2013.Before diving into the Script, let us see, how to do that using the User Interface. - See...
View Article-Service Cmdlets to Target Services on Remote Hosts
Except Get-Service and Set-Service, the other * -Service cmdlets do not support the -ComputerName parameter in PS 1.0 through 4.0. You can pipe a (remote) ServiceController object obtained from...
View ArticleHow to connect to Office 365 Exchange using Powershell
I use these commands to connect to Exchange Online in Office365.To do this you need to open powershell and run these command:Read More
View ArticleCreate formatted list of files using split string – Powershell
Got a request today to build a csv file that listed out some files in a folder along with a few other bits of information. The headers from left to right are: parentId($id), Description($size),...
View ArticleUsing PowerShell to Find Disabled or Inactive User Accounts in Active Directory
Perhaps you need to do something with the information or maybe you simply need a report so that someone else can make decisions. Using PowerShell to query Active Directory is not that difficult,...
View ArticleDon't Let Pending Reboots Get In The Way Of Your Work
This PowerShell script will help you save time by automating reboots and running your scripts. It will also prevent potential downtime if the file you're executing conflicts with a pending reboot...
View ArticleCreating an Azure S2S VPN
Q: I'm using Windows Server as my local VPN gateway to connect to Azure; is there anything special I need to configure on my local gateway OS instance?A: It's actually a pretty simple process because...
View ArticleSetup Replication Connections using PowerShell
Now that the new toolkit has been released its time to start with an example of using some of the new cmdlets. The focus of this post is setting up replication between a FA-420 and an FA-405.The...
View ArticleComparing the registry to versions of Office installed
Hi all, I've been racking my brain for a couple of weeks trying to find a decent solution to a problem that plagues a lot of IT professionals. I work for an IT consulting firm that handles multiple...
View Articlemailbox search
Hi AllI am trying to create a monthly windows schedule task where mailbox deleted items are searched for last 30 days from the date the schedule is run. This worksSearch-Mailbox -Identity "user"...
View ArticleList AD Users and All Groups in Excel
I Need a Script which lists all AD Useres with all their Groups and all ADGroups "not Member of" in one row in the same order. So the result is like a Matrix I did a Script with a Hashtable, which...
View Articleimport-module active* not working
Hi All,I have a script which adds a machine to domain, move it to particular Organization Unit and add the machine to Active Directory Group.i am trying to import the active directory module after...
View Article