Quantcast
Browsing all 21975 articles
Browse latest View live

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 Article


Getting 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 Article


How 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 Article

Image may be NSFW.
Clik here to view.

Powershell 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 Article

Windows 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 Article


Add alert

moved

View Article

Install 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 Article

POWERSHELL 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 Article


Windows 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 Article


Concatenation

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 Article

How 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 Article

Getting 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 Article

Removing 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 Article


powershell 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 Article

problem 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 Article


using 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 Article

I 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 Article


How 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 Article

Experience 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 Article

Get-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
Browsing all 21975 articles
Browse latest View live