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

Add-WindowsFeature "Net-Win-CFAC and RSAT-Web-Server" name not found in...

I have a clean install of Windows Server 2012.  I am trying to run the below cmds and getting this error.  Is there another name for these features?I am attempting to install ARR IIS...

View Article


save webpage as xps file

I can save a webpage as xps file manually as below:$oIE = new-object -com InternetExplorer.Application  $oIE.Visible = $true  $oIE.Navigate(http://www.mywebsite.com)  $oIE.ExecWB(6,2)Is there a way to...

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

Problem with PowerShell Remoting--getting 403 error on client

I have a Server 2008-R2 box that I've configured for PowerShell remoting. As far as i can tell, the server is listening on the port (5985), running just fine and in fact seems to be accessible from my...

View Article

How can REMOVE USERS MEMBERSof FROM ALL GROUPS EXCEPT DOMAIN USEr wihth...

REMOVE USERS MEMBERSof FROM ALL GROUPS EXCEPT DOMAIN USEr wihth powsershell

View Article


how check Powershell Version ?

Hi...allI installed SQL Server 2008 Dev edition on XP sp3.(It Installs WPS)I am very much new to PS..I started testing my Installation.For example, I typed Get-PS and press the Tab key , the following...

View Article

How to get contacts from Active Directory's Distribution Group in CSV using...

 Hello,Please let me know the script, which can be useful for me to extract Contacts from Distribution Group of Active Directory to CSV using PowerShell.Thanks,Divyaprakash Koli

View Article

Powershell - inquiry on group policy/registry settings

Hello, I'm using Set-GpRegistryValue to create some registry entries for group policy, but I'm noticing that it's putting them inpolicies\admin\extra registry settings, but I want them to go...

View Article


Location stack?

I looked at the help for push and pop-location but under description I see:"For more information about location stacks, see the Notes."Basically is what I want to do is push the current location onto...

View Article


How to extract images from PDF file using PowerShell

Hi All,I've been looking around online, and have seen various solutions for extracting / finding text in a PDF using PoSH. However, one thing I don't appear to have found yet is something that can...

View Article

Create and execute a Function from PowerShell commands

We have several PowerShell commands that we batch up and run to update/edit AD accounts. Examples below:set-user -Orginazitionalunit "OU=users,DC=domain,dc=com" -Company 'Text1' get-mailbox...

View Article

XML text node?

I have an XML file that has one text node and several child nodes. Say $xml points to the node, how do I get just the text node value from the node? If I do something like $xml.Value I get a...

View Article

PowerShell and VisualStudio?

I have tested a script stand-alone both as and not as the Administrator and it works just fine. So I added this script to a build event as part of a VisualStudio project. When it runs there I get the...

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

Domain join server 2012 using script and input for domain name

Ok, so here is the scenario. I am sending out a sysprepped server 2012 VHD to our remote offices. I have a powershell script that copies the vhd to a directory structure on the remote office's hyperV...

View Article


Setting 'Apply Group Policy' to Deny for a GPO Group through Powershell

Hi. I got a script that creates OU structure and creates all the groups when we set up new environments.I was hoping I could expand this script to also automate GPO creation. However I've encountered...

View Article

Public Key for elliptic curve encryption

We need to encrypt some data and would like to do so using PKI with an elliptic curve based certificate. When we create a certificate and look at it using RSA, we get the following: $CBytes =...

View Article


soap error

working with sharepoint and im getting errors returned but, its just a generic soap error, is there a way to get something a little more useful? $proxy = New-WebServiceProxy...

View Article

How to pull out the domain local group members and all users are member of...

HiI need to pull out the other domain users which are added in my domain of one domain local group.when I am running below command to get the group user list getting below error:PS C:\>...

View Article

Where to add size limit syntax

I found the following script on a PowerShell repository, and it works great. I just need to increase the size limit, since it's limited to 1000 entries. I need to put in -sl 0 or something to that...

View Article
Browsing all 21975 articles
Browse latest View live


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