Quantcast
Browsing all 21975 articles
Browse latest View live

Cannot access the local farm. Verify that the local farm is properly...

I have added powershell via : Add-PsSnapin Microsoft.SharePoint.PowerShell but when I want to run "Get-SPFarm" in powershell, got the error:Cannot access the local farm. Verify that the local farm is...

View Article


Replace whole column data in powershell table

This is probably an easy question but how do I change/replace one column data to my own strings plus the data that is already there? And in the end I want to output the whole table (displayname, name,...

View Article


Properly handle DSC Reboot

I'm trying to install sql server with xSqlServerInstallWhen I Start-DscConfiguration it runs perfectly and it ends with a message like thisERBOSE: [WEBTEST2]:                            [] A reboot is...

View Article

Deploy DacPac with DSC suceeded only the first time

I've this simple configuration, when I run the Dsc-StartConfiguration the first time everything goes well, the database gets deployed and all the tables are there.    xDatabase DeployDac     {...

View Article

Watch Million Dollar Arm Online

http://www.playrust.net/index.php?threads/up-dation-watch-x-men-days-of-future-past-online-free-full-movie-cache-putlocker.111076/...

View Article


Deploy dacpac with DSC xDatabase when you have multiple projects

I've a situation with Two database projects in Visual STudio, the one is Tailspin.schema and the other is called TailspinSchemaAndTestData that references the first one and add some test data with a...

View Article

Splt Strings with Capital Letters and Numbers

HiI have got a Powershell line below that split a string with capital letters into spaces which is great.$test = "OnceUponATime" $test = ($test.substring(0,1).toupper() + $test.substring(1) -creplace...

View Article

String Comparison based on EXE output

I got the code below$URL = "http://content3.catalog.video.msn.com/e2/ds/3416835b-d0fc-412a-8de5-d2101ff48341.mp4" $wget = "C:\Program Files (x86)\GnuWin32\bin\wget.exe" $URLfilesize = &$wget -S...

View Article


Is $ENV:Path the System version of $path or the User version of $Path ?

On my Windows 7 system I have two versions of the environment variable $PATH; one under "User variables" and one under "System variables" in the System Properties/Environment Variables dialog box.Is...

View Article


Passing a parameter to a function via an alias

Hi all,Is it possible to pass a fixed value to a function from a alias?For example say you have a function which opens a web browser and that function accepts a parameter for the URL that you want the...

View Article

how to excute a power shell script to remote machine using power shell script...

Hi, Let say, I have 3 parameters.1. Script FolderPath (Remote path for e.g \\RD101\ScriptSharedFolder     Here RD101 is one server) 2. Script Name(StopAllService.ps1) 3. Server Name (RD45) I want to...

View Article

Image may be NSFW.
Clik here to view.

[Forum FAQ] How to add and remove user accounts in multi-domain environment...

We can easily manage the user and group accounts in a single domain. However, if we have multiple domain, we may need an effective method to manage the accounts. This article will introduce some...

View Article

Foreign domain ou-structure to treeview object...expertise needed

Here is my simple script which works fine on my own domain (first one: TreeViewOwnDomain.ps1). Now I want to read foreign domain and use treeview as same way.Here is also another script which connect...

View Article


PowerShell script to output all users who have no password expiry

Hi all,Trying to put together a quick audit script to output all users who have no password expiry.  I'm also looking to filter this by only users who are enabled and users who's accounts have not...

View Article

Creating Configuration Items using PS - Scripting

I have figured out how to create a new Configuration Item, but I can not figure out how to add the Settings and the Compliance Rules.  IS this actually possible.  THANKS :)

View Article


Script using Windows PowerShell ISE to move mouse and control keyboard

Hello,I am new to PowerShell scripting, and fairly new to scripting in general.I would like to create a script that would move the mouse to a certain location, double click, enter a number, click tab 3...

View Article

Powershell response very slow

I have win 2012 R2 server Datacenter with Hyper-v role enabled. I am making powershell remote calls to get VM details from Hyper-V but everytime call takes 5-6 mins.I am calling commands like get-VM...

View Article


Image may be NSFW.
Clik here to view.

error running a script

when im running this powershell script:$CPU = (gwmi Win32_PerfFormattedData_PerfProc_Process | ? {$_.Name -eq 'XXXX'}).PercentProcessorTime if($CPU -ge 90) { Get-Process -Name XXXX | Stop-Process...

View Article

Split Strings with Capital Letters and Numbers

HiI have got a Powershell line below that split a string with capital letters into spaces which is great.$test = "OnceUponATime" $test = ($test.substring(0,1).toupper() + $test.substring(1) -creplace...

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
Browsing all 21975 articles
Browse latest View live


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