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

SQL stored procedure print output to text file;

I'm trying to get the output of a storedprocedure to a file.  The SP creates a print view of the data and when I try to out-file it just gives me the -1.  Here is my script:$server = "server"...

View Article


PowerShell: New-AdUser > Account > Log on to

Hey, To make it easy: I'm creating a new user and I need to define one computer that can log on to it in the User Properties > Account > Log on to.. This is the current script:$Cred =...

View Article


pwershell script for spread the print driver to all people and check if they...

Network task1        install network printer using scripting you have a network printer in a company like DashSoft and you need to spread the driver to all people and check if they already has it...

View Article

PS Script Export All Jobs/Logins On A Server

I've been working on a c# script to script jobs and logins (as saved SQL files) from a server with no success because c# isn't connecting.  I know PS can do something similar (and, since it's on the...

View Article

Add a security group to all DNS entries and zones?

Is there a way to script out adding DnsAdmins security group to all DNS entries and zones? One of the other admins has been adding this piecemeal and i want this done since i keep running into places i...

View Article


Implicit remote with ActiveDirectory Module on a Win 7 Workstation to a...

Hi,I'm a newbie at Powershell scriptiong and I'm trying to Implicit Remote to the a Windows 2008 sp2 (R1) DC from a Windows 7 workstation to run AD commands. My goal is to script user creation in the...

View Article

Powershell iterate through SharePoint subsites and add group permission based...

I have a web app that houses all of our project sites. I want to be able to add permissions for a group where the "Project Department" column of the "Project Health" list equals a user defined...

View Article

cannot install PowerShell 2.0 on SBS 2003

I am in the process of Preparing SBS 2003 for migration.One of the prep tasks is to install PowerShell 2.0I download the install WindowsServer2003-KB968930-x86-ENG.exe.I ran the install as...

View Article


IBM WMI

Hi,I am looking for class/namespace for querying IBM server Hardware information like....controller card...cache battery status...memory modules installed and their status....I was able pull the said...

View Article


Unrestricted PowerShell in domain using GPO

Hello,with GPO i have deployed Powershell as Remote Signed.When starting a .ps1 from a network drive the .ps1 isn`t Digitally signed.Which Group-Policy solution can i do to force .ps1 to run over the...

View Article

Help Logging with WMI SCCM Script

I have found a script to help me migrate some of my packages from SCCM 2007 to SCCM 2012.  It doesnt always seem to work so I would like to export the results to an excel sheet or a log.  I have no...

View Article

Connecting to Exchange Online using module vs. manually : module wont work

I'm nearly at my wits' end. I have installed MSOnline, and Active Directory modules for PS 3.0.I've created a PS module which contains a function, "connect-exchange" which simply gets my credentials,...

View Article

Not able to change the idle session limit of Remote desktop services

Hi,When i go to this path in powershell, trying to change the idle , active and disconnected session limit to 4,5,4 . It doesn't change instead of  changing it shows be "Never" used. Should i set the...

View Article


Group Policy for Set execution policy Bypass?

Hello,i am looking for a GPO-solution to set the execution policy to bypass.What can be done to achieve this?Thx

View Article

Get scheduled tasks from list of computers

I found script in MS gallery which will pull schedule tasks in computerparam( $computername = "localhost" ) try { $schedule = new-object -com("Schedule.Service") } catch { Write-Warning...

View Article


Create report based on ACL permission entries

I need to prepare a report of the ACL entries for user folders on our primary file server. I need to see what folders have ACL entries that do not match a predefined user/group.For...

View Article

Calling a Function not working. Returning "The term 'Test' is not recognized...

Hello All,I am having issues running a simple script. I have function Test with parameter inputs. I have called upon windows forms to ask for the files I want, then it will store them in vars. Then I...

View Article


Why wont variable substitution work?

Hello,When I run the following, I get an error on the  copy-item -destination c:\temp\$DC even though the new-item worked successfully.  But if I specify the directory as a literal, as in c:\temp\DC1,...

View Article

Communication between powershell and c#?

Is it possible to communicate between powershell and c#?My group is looking at creating a calculation builder app that our users could enter in a calculation (ex. if (somevalue + someothervalue = 400)...

View Article

Image may be NSFW.
Clik here to view.

Enable the explicit view permissions for a DFSn Folder - 2012

Is there a way in PowerShell to enable this selection on a DFSn folder? I found that when setting the Grant-DFSnAccess command, even if this has been previously set to explicit view, it goes back to...

View Article
Browsing all 21975 articles
Browse latest View live


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