Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Powershell 3 compatible with .net.4.5

Hello, i have multiple machines with Powershell 3 ( Wmf 3) and .net 4.0 installed. Can i install .net 4.5? Does this cause any problems?best regards, arhillhttp://www.administrator.de/

View Article


Type already exists?

I am using Add-Type but I am getting the error:Cannot add type. The type name 'TestSetup' already exists.Can I tell if a type already exists and remove it so that I will not get this error?Thank...

View Article


Storing Credentials to be used as a different user - instantiation issue of...

I have services which require certain credentials to log in and i am attempting to automate this process to run certain jobs. I've attempted storing password data as a securestring; however, secure...

View Article

Mount-DiskImage in a remote session exeception- Cannot process Cmdlet...

Hi everybody,I have a strange problem with Mount-DiskImage command.Environment: Windows server 2012 without any updates.All scripts signed as it was in Hanselman's...

View Article

IF Statement help - PowerShell

Hi,I am trying to remove and add a group if a user is a member but the IF STATEMENT is not quite there.  It does not loop through every user in the spreadsheet.  Any assistance would be much...

View Article


[DOC BUG] in Start-Job cmdlet parameter -FilePath

In http://technet.microsoft.com/en-us/library/hh849698.aspx, it can be read:<#-FilePath<String>... Enter the path and file name of the script or pipe a script path toStart-Job...... Accept...

View Article

[BUG] in Start-Job cmdlet when piping job's name to the cmdlet: the resulting...

Consider this script:$job=[pscustomobject]@{Name='Qwerty'} | sajb -ScriptBlock {ps}The job is created, successfully, with the name specified above.It can be seen commanding:gjbNonetheless, trying to...

View Article

PCI Slot finding

Hi,Is it possible using powershell to find PCI slot number of physical NIC card attached to server. I am preparing Network inventory sheet for HyperV 2012 R2 project.

View Article


Setting Scope HyperV 2012 R2 What replaced ScopeOfResidence?

Basically, I want to know how to set the scope for a hyper-v vm in Server 2012 R2. I work at an academic institution, we intend to upgrade our 2008 R2 servers to 2012 R2 but before we can do that we...

View Article


Get Processes by Username without WMI

How about this for a solution that doesn't involve WMI.  #This will retrieve all processes by...

View Article

Need VB script for SMTP Status

Hi guys,Need a script for finding the SMTP status like Enable or disable for the list of servers.Regards, SreeM

View Article

Wait for process to start then loop start-process for another process until...

I am trying to wait for a process to start, once started, then loop start-process again for a second process until it starts, then wait until the first process has stopped and exit script. Heres my...

View Article

convert ObjectGuid attribute to HEX

I need to convert a computers active directory GUID into hex. The format I need this in is displayed the way I need it when I view the GUID through Active Directory Users and Computers, but every...

View Article


multiple table format through email using powershell

Hi All,I have a powershell script which executes a SQL Query on three SQL instances and provides the result in table format through email. The output email contains all the result of the query in a...

View Article

Internet Explorer tab titles

Trying to write a script to retrieve the title for all open Internet explorer tabs on a terminalserver.I have found several scripts to get all internet explorer tabs on a logged in user, but I need to...

View Article


how to create TFS query link

I have below TFS query and I want to create a link for TFS like QueryLink so when we click the link it should open the query in web in TFSplease let me know how do I create the link.$tasktfs =...

View Article

GetComputerSite()'s server list is empty...

Hey folks -- So I'm working in an Active Directory environment that is healthy.I've run: [System.DirectoryServices.ActiveDirectory.ActiveDirectorySite]::GetComputerSite()And expected the servers...

View Article


1 profile many comptuers

As a network adminisitrator and Powershell user I find myself having to copy my profile to every computer I log into in order to retain the same functionality across systems.  Is there a way to...

View Article

Image may be NSFW.
Clik here to view.

Powershell - Modify Share Permissions on NAS (without WMI)

Good morning everyone!I have been working with Powershell (and Orchestrator) to automate management of our file shares.  The plan is to modify, remove, rename and/or create these shares and apply...

View Article

How can I set permission for a shared folder?

Hello,I want to share a folder and set permission for the shared folder. I've shared the folder. I used "net use z: \\server\folder" and "$shares=[WMICLASS]"WIN32_Share"...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>