Quantcast
Browsing all 21975 articles
Browse latest View live

how to create a list and view in sharepoint 2010 using powershell?

could anyone write the scripts to create a view and list in sharepoint 2010 using powershell. I have just started learning and struggling to find the right sources to learn powershell. If possible,...

View Article


Script to copy folders matching the name of folders in another directory,...

Good afternoon guys,I am totally new to PowerShell (only discovered it a week or so ago), or scripting in general for that matter, and therefore am finding it very difficult to tailor scripts I have...

View Article


WinRM Remote Powershell session (wsmprovhost.exe) not exiting after calling...

The company I work for has a powershell based deployment process for deploying a web application to many internal web and database servers.  We use remote powershell sessions and winrm to run an...

View Article

Create proxy email address and set it as the primary email (bulk) - Office...

(1) i would like to basically create a proxy email address for every user by taking their existing email and simply changing the domain. so for example, bob@whatever.com would have proxy...

View Article

How to export user membeship and Attribute values to CSV

HiI have these simple script to pull the attribute values:import-module ActiveDirectory Get-ADUser -filter {objectclass -eq "user"} -Properties extensionattribute5| select name, extensionattribute1 |...

View Article


Excluding from Convert to Html

Good afternoon,  I am using a powershell script to run a query on sql and grab the results and then save them to html.  The problem I am running into is that in addition to the fields I need it's...

View Article

I need to know if the Remote Desktop Connection is a active (determine...

Hi, I thought that it is easy to find out in PowerShell if I am currently locally connected to the desktop (console) or trough Remote Desktop Connection. But it is not easy. I cannot find this...

View Article

Connecting to remote powershell using C# development

Hi guys,I'm trying to use C# to connect to a powershell on a remote server,here is the code:string liveIDConnectionUri = "https://vm-milad/powershell";string schemaUri =...

View Article


Include 'extra' properties in output

Hi,I'm looking to get a list of log on as service accounts on remote computers. I can output the service names and accounts but is there any way to output the server name etc ($SQLInstance.SQLInst and...

View Article


How to delete an element from XML embedded in WMI

I have an xml embedded in WMI that contains the following. <?xml version="1.0" encoding="utf-16"?><UpdateXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...

View Article

Listing all the patches/updates installed in Windows machine

Hi AllI want a script to list all the patches/updates installed in my PC. I tried the below script but it does not give me complete list of patches [SQL, Visual Studio, some Office patches are not...

View Article

Get-GPOReport Remote PowerShell Session

Hello,I have a custom PowerShell configuration (PSSessionConfiguration w/ Startup Script) to allow some folks the ability to run a subset of cmdlets from a remote session. This has been working great...

View Article

get-website : Could not load file or assembly error

I have several web servers where I use Powershell to perform inventory tasks.Recently, two of my servers started giving me this error when they try to execute get-website in a Powershell script that is...

View Article


Delete 2nd level and above (3rd,4th,etc) subfolders and files with exclusion...

Hello everyone !I have the following folder structure:-Projects -->(root folder)     -Project1 (2nd level subfolder)     -Project2 (2nd level subfolder)     -Project3 (2nd level subfolder)...

View Article

I want filter Get-ADComputer -Properties PasswordLastSet by date.

I have a functional script that grabs the Get-ADComputer -Properties PasswordLastSet and displays the computer name and date. What I want is to filter out systems by the date, so I only see systems 30...

View Article


WMIC Powershell Call TriggerSchedule Error

I've searched all over the web and see that there are ways to trigger actions on SCCM clients via the SCHEDULEID. However, when I try to run the exact same command I get "invalid verb switch" yet every...

View Article

Setting AD user paths

I am using server 2008R2 with the active directory module. I want to call the new-aduser cmdlet to add a user to a domain controller called "Network Users". I am currently writing the following:...

View Article


Image may be NSFW.
Clik here to view.

Issue with foreach and Get-ADUser -Filter

I think I'm having an issue with variable type handling.  Can someone explain why the first block of code works, but the 2nd doesn't? $studentsList = ipCSV C:\studentsSummer.csv foreach ($student in...

View Article

Trouble installing SMTP on Server 2012 Standard Core

I asked this on the windows 2012 forum, where I was advised to ask this on this form.I have a Server core instance I am administrating via PowerShell remoting. It has IIS and Sql 2008R2 functioning...

View Article

Enumerate named parameters

Hi All,I want to write a small function, which will be put in a module, that needs to be called by all scripts to track when which script has run, version,by who and a link to the transcript file.Now I...

View Article
Browsing all 21975 articles
Browse latest View live


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