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

WebAdministration: site creation failing in Server 2012, works in Server...

We have the following script block that we've been using for a while (on Windows Server 2008 and Windows 7) to create sites in IIS:Import-Module WebAdministration Set-Location IIS:/ Get-ChildItem Sites...

View Article


Error when converting from json

Hi,when I want to convert string from json (using ConvertFrom-Jsond) one bigger file (64KB), I recieve an error "ConvertFrom-Json : Error during serialization or deserialization using the JSON...

View Article


Locking down PS-Remoting

Hey Guys,I really want to set up a domain wide acceptance of PS remoting. This is to gain an SSH like functionality to any machine including user machines on our network. However I'd really like to...

View Article

How to open URL through powershell

How to open URL through powershell ? 

View Article

Outlook Rules and Size Query

I need to query all the Outlook rules fore a specific mailbox and get the individual size of each rule. Any ideas?

View Article


Not sure why values arent outputting on the first run

If I need to put the script on here I will, but basically I have script that runs it loops through our citrix servers based on the user name if it find the user on the server it returns the username...

View Article

script to copy file based on it last access

Hi all,I'm looking for a script to do this:source: g:\fileserverdestination: h:\oldfiles 1.  Move only files and folders that are last modified older than 2 years 2.  Create the same folder structure...

View Article

Select-Object output?

Hello, I have a simple PS script that is a collection of functions. I am curious as to the following:Function Get-Something { # Bunch of code to gather, etc $test | Select-Object SystemDirectory,...

View Article


Get list of users from multiple groups

Hi,I want to list members from a bunch of groups. I use this: $groups = get-qadgroup "www*" foreach ($group in $groups) { $group get-qadgroupmember $group | select...

View Article


How to set CerificateValidationMode to None in PowerShell

Hello From a remote Win2k8 R2 server to a Win2k8 R2 serverI am using Get-ADUser just fine to my AD service using un-encriptedport 389 (credential settings are fine)When I try to use port 636 and the...

View Article

Get-ADComputer to Export all Computers in OUs and Sub OUs Named Computers

Hello, I want to export all the computer objects in our active directory without manually specifying the -SearchBase OU=... Is it possible? All our computers are are located in OUs named Computers...

View Article

Exporting and Comparing the configuration of several IIS servers with PowerShell

I've been given the task to auditing eight IIS servers in a Load Balaced array (using a Hardware Load Balancer). They are actually Exchange 2010 CAS servers, but their underlying IIS is causing some...

View Article

Image may be NSFW.
Clik here to view.

Create predefined firewall rules.

Hi!Is it possible to create new predefined firewall rule like can it be done in GUI?Thank you in advance.Любовь долготерпит, ...

View Article


Set-QADUser & ForEach not working...!!

I'm still having some issues with bulk updating Active Directory using Powershell...If I enter the following "Import-CSV D:\Oracle\Source\Test.CSV | Set-QADUser -Identity {$_.mail}" the objects are...

View Article

Adding & Verifying existing AD Users in OU and create a CSV file

Hello I am working on the following:If the user or users from the master file exists in the COMPANY ou and does not exist in the New - Users OU, not need to create the AD User and creates a...

View Article


Stream live output from background job?

Hi. I have a small powershell application that runs a background job. This is used for learning more about powershell, so please dont laugh to much:) This application is built in Powershell Studio as a...

View Article

cleaning up a filepath

I'm not very good with powershell but I'm trying to get a line of code that cleans up a file path.  Right now, the code is pulling information from AD that looks like this:Jon Smith/London/United...

View Article


Powershell will not save excel file

First let me state, I'm a complete noobie at PS and am having some difficulties working thru this issue.  Please excuse my coding if it appears a bit rudimentary.  I have a script that opens a text...

View Article

Query DNS secondary zone for Master servers

Is there a way via PowerShell to query a DNS secondary zone and return the list of Master Servers? I guess I'm essentially looking for a Get equivalent of Add-DnsServerSecondaryZone but that doesn't...

View Article

Trying to use Add-Computer -ComputerName (Get-Content Computers.txt)

I've been trying to test out joining computers to a domain using the command below.  My reference for this is from Microsoft, here.   Add-Computer -ComputerName (Get-Content Computers.txt) -Domain...

View Article
Browsing all 21975 articles
Browse latest View live