ISE additional spacing and temperamental colur issues w/ function
Hi All,We've got some weird DNS issues where our DNS server doesn't seem to hold the latest addresses for our machines as provided by our DHCP server.This is causing me a bit of a headache when trying...
View ArticleEnabling PowerShell Remoting SSL on Windows 7
Hello,We have been asked to setup PowerShell Remoting HTTPS on our Windows 7 estate. I was just wondering if there is a step-by-step guide (which even includes certificates creation etc.)?HTTP option...
View Article[PowerShell] Disable File and Print Sharing on Public and Private Network...
I am looking for the right powershell command for Windows 2012 so I can turn off File and Print Sharing (in the advanced sharing options) for the Private and Public network categories. I wisht to keep...
View Articleproblem with the powershell pipline parameter process
Hi, I'm confused with the pipeline processing of object-property-parameter association.Here my Cmdlet example Function test-psboundbug{ [CmdletBinding(DefaultParameterSetName='Parameter')] param(...
View ArticleHow to get OS version from Logon script
Hi ,We are in need to create a logon script , where we should identify the OS version & proceed.We have a mix of XP/Win7/Win2k8/Win2k8R2/Win2k3/Win2k12)1) We have tried using "Systeminfo" but this...
View ArticleError loading Virtual Machine Manager 2012 and Data Protection Manager 2012...
Hi.Very strange issue: when i try to load together Virtual Machine Manager 2012 and Data Protection Manager 2012 modules - script fails. If first loaded Virtual Machine Manager 2012...
View Articlesearch multiple folders for files with same name and create single file
I have a project where I need to search multiple folders for a file name and when found append data from each file to a single input file. Exampleroot folder to start...
View ArticleMake a new child domain(Domain2) using Powershell
I am trying to make a new child domain(Domain2) using Powershell.$user = Get-ADUser 'CN=post master,CN=Users,Domain2,DC=Domain1,DC=com' -Server "Domain2.Domain1.com" Add-ADGroupMember "Test Users"...
View ArticleHow to get the DNS Domain Lease of the DHCP Server ?!
Hi guys,first of all my apologies.. I am a newbie at powershell...I need to get the DNS Domain Lease given by the DHCP Server via Powershell... does anyone hasrealized this before?! Google did not...
View ArticleGet-ADUser and Get-Mailbox
Environment: AD running on Windows 2008R2 and Email on Office 365 (cloud only - not on premise)I am trying to initially find all mailboxes where LitigationHoldEnabled is set to true in a particular OU...
View ArticleOpen a URL 5 different times a day based on times from an EXCEL spreadsheet.
HI there I would like to open a specific URL at 5 different times of the day, everyday for the whole year using windows powershell. These times would change everyday by a minute or so and therefore i...
View ArticleDrive Optimization -- Setting the frequency
Ok,I have been searching for a way to set the scheduled optimization of a drive to Daily, vs the default weekly.I would like to do this via powershell, so ican ensure that all my Servers are...
View Articleneed help creating a powershell script to call a list of networked servers...
Hi Experts, plesae help creating a powershell script to call a list of networked servers and to find a file in each. This should search in all servers irrespective of model, architecture and OS...
View ArticlePowershell & C# to check if host available
Hi All,I have a c# code segment which process a power-shell script. The following is the code segment.Runspace objRunspace = null; objRunspace = RunspaceFactory.CreateRunspace(); objRunspace.Open();...
View ArticleGet-WinEvent remote time
When using get-winevent to return events from a remote machine, the time is adjusted to local time. Is there any way that I can see the event time as the remote machine's time? WinRM is not enabled.
View ArticleMaking my script faster.
So i've made a script that checks a CSV file for IP configuration settings and sets them on the list of corresponding machines.the csv data fields are like this.Machine : machine1.contoso.com IP :...
View ArticlePowershell to delete listed folders from a text file
Hi, I am trying to come up with a Powershell script to query a text file with a list of folders, delete the folders listed and create a log file of the deleted folders. I am new to this, so do bare...
View ArticlePowershell Create Objects
Hi,I'm trying to create objects in powershell. I know this can be done through hash but I'd like to practice with objects.Any help is appreciated.In Excel they are entered as:ITEM1 CM...
View Articlepowershell script to search specific event ID's from Archive Event files
Hi,I have to search some Windows Event ID's from Archive event (evtx) files. for that i am trying powershell code mentioned on below link but its not working. Kindly suggest how to search specific...
View ArticleError: "File cannot be loaded because the execution of scripts is disabled on...
Hello,I'm executing powershell scripts from command prompt. I've changed my execution policy to Unrestricted. Also, Get-ExecutionPolicy is showing 'Unrestricted'. When i execute following error"File...
View Article