Creating Nested Groups Using PowerShell
I am trying to create a Powershell command to nest one group as a member of the other but I can't seem to find anything and the page on here about it seem corrupt in some way.I have tried:dsmod group...
View ArticleGetting the wrong output
hi, im trying to write a FTP script. And i need to echo out some commands to a txt file.This is the command im using echo "asd" >> ftpcmd.txtBut for some reason i get this OutputaNULsNULdNULI get...
View ArticleHow to check if User Account is locked.
How can I check if JohnS account is locked before running the following?Unlock-ADAccount -Identity JohnS
View ArticlePowershell and ISE 64 bit crashes
Hi, powershell and ISE 64 bit on windows 8 is ceashing whereas both 32 bit works fine, whenever I trigger the 64 bit I get the following wrror
View ArticleWindows Command to get FW version of NIC card
Hi,I am trying to find out the FW version of my NIC card in windows PS. But, could not get any solution yet. However, in Linux I get it from "ethtool -i". Is there a similar tool or any other way....
View ArticleInstall msi to remote computer
Hi I am trying to install msi package to remote computer using this way: $a = ([wmiclass]"\\remotecomp\root\cimv2:win32_product") $path = "\\server\share\file.msi" $a.install($path) If msi package...
View ArticlePOWERSHELL CONNECTING TO RDP WITH AUTOMATIC CREDENTIALS WITH PASSWORD STORE
Can you please provide me the script where it logs in automatically to rdp without giving any username or password to the rdpI have :Enter-PSSession -ComputerName xxxxxx -credential xxxxxBut when I use...
View ArticleWindows Management Framework 3.0 and PS Remoting
Hello, after upgrading my Windows 7 x86 clients to WMF 3.0, I can no longer PS Remote to those machines (using Invoke-Command or Enter-PSSession). The same update, applied to Windows 7 x64, does not...
View ArticleConcatenation
Hello Everyone,Kindly assist am stuck trying to concatinate Powershell code below. i would like the Display Name to beName (Title - Branch) i.e like below i expect it to beMeshack King (Help Desk...
View ArticleHow to get all command about new-pssession or connect-sposervice with powershell
Now I'm using Office365 Exchange Online and Sharepoint onlineWhen I connect to Exchange Online,I can use the script below:"$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri...
View ArticleGetting verbose loggin from Powershell command when it is run from c#?
Hi,I made a code to run powershell command from C# to collect list of mailboxes from office 365.The command works fine to collect the get-mailbox.I want to write verbose logging to a text file when the...
View ArticleRemoving empty rows from csv
Hi,I have a csv, where I need to remove two blank rows which show up after the column name, dotted line and the string " rows affected"COL A COL B --> remove...
View Articlepowershell web access Interface change
I am planning to host intranet site for powershell web access hosted on windows server 2012 which will be accessed by entire team (around 500 Infra team). After login to powershell web access front...
View Articleproblem with GWMI command on Win 7
Hi folks,I'm trying to execute a command: $a = gwmi win32_bios -comp 140-pcandget the following error message:Gwmi : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)Remote computer...
View Articleusing WinRM as installer; the installer silently fails
So, I'm trying to push some software out (McAfee installer) via powershell and WinRM. I've pulled all my hostname from VMware and am just looping through them. I've enabled WinRM via GPO, disabled UAC,...
View ArticleI need an alert to be sent if a function fails
Hi all,I'm learning powershell (slowly) and have managed to get a script working which utilizes wevtutil.exe to pull out the event logs from servers we specify.The script creates a temporary data-table...
View ArticleHow can be Check for each web site in IIS: "Properties / Home Directory
Hi Mate,New to IIS, Kindly let me know how with the help of PowerShell we can Check for each web site in IIS: "Properties / Home Directory.Also refer few good links IIS with PowerShell.Regards, Anirban...
View ArticleExperience with DFSN Module
Hi Guys,I've already opened a Microsoft Connect Bug report, but I'd like to know what is your experience with the DFSN Module on Windows 2012I'm trying to deploy DFSN into a new domain using only...
View ArticleGet-WinEvent Windows 8: The data is invalid
I cannot run Get-WinEvent on either of my 2 Windows 8 machines. I have tried running them i -version 2 mode, it's stille the same. I get the following error:Get-WinEvent : The data is invalid At line:1...
View Article