Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

Unable to find type[ ]: make sure that the assembly containing this type is...

I created an Enum, and while trying to run it by running the command [MyNamespace.MyEnum], I get the error that says"Unable to find type[MyNamespace.MyEnum]: make sure that the assembly containing this...

View Article


DSC: What does Get-TargetResource do?

I have been creating a collection of Azure related DSC resources, and mostly because it isn't clear what the purpose is, I've been leaving Get-TargetResource with a defaultI imagine (read am hoping)...

View Article


Error message running powershell as admin, not running ISE as admin

I have a powershell script local on my dc. When I run the script from inside ISE (as admin) it works beautifully. When I run it just inside a powershell window (as admin) it gives me an...

View Article

Remote Process Kill Script via either VBScript or Power Shell for *multiple*...

Hello all,I've seen quite a few variations of this but not one that does what most people are looking for. I've also tried to modify some of the scripts I saw online but get syntax errors. Can someone...

View Article

Automate image capture / deploy WinPE 4.0

Hi All, I need help with capturing an image on a Win8.1 tablet. The Thinkpad Tablet 2 only has 1 USB port and no keyboard support in WinPE as far as I know. I was able to inject the touch screen...

View Article


Whats the main difference between Add-Type and...

HelloI have a query please, if someone can help answer itI am just not clear on when to use which method and if they need to be used together some of the time or all of the time.Is it true to say the...

View Article

Disappearing IE Object

Internet Explorer is capable of decoding .eml E-Mail messages. I am trying to automate the process, using this script:Set oIE = CreateObject("InternetExplorer.Application") oIE.visible = True...

View Article

Retrieve nested LDAP groups independent from the network env. (five different...

Hi all, I want to retrieve a list of nested LDAP groups per user from the Active Directory. I have been searching google for half a day now, but I'm still not sure what approach to use. I have the...

View Article


How to code this powershell script?

Recently, my internet setting is changed from PPPop into DHCP, and following code in powershell script is no longer applied,  I would like to know on how to code and reset the connection for DHCP using...

View Article


Auditing active directory group and send email report

Hi , I was writing an powershell script to audit an active directory and send automatic report and I got a lot of help in this forum. below is the original code that is allowing you to receive report...

View Article

Understanding how Windows does Pattern Matching in Command Prompt

I have 500 files in a directory, test1.txt to test500.txt From Microsoft's link http://msdn.microsoft.com/en-us/library/ff469270.aspx, I did not clearly understand the difference between * and < The...

View Article

create Hyper-V virtual switch with VLAN tagging

Hello All, I would like to create virtual network switch on a physical NIC of the Hyper-V host in Powershell. I use "New-VMSwitch" with "-AllowManagementOS $true" and the virtual switch will be ready....

View Article

Script to mail user before the expiry date of user accounts

Hi Experts,We have some user accounts (generic ID's) which are been created for a few months on users demand. I was trying to write a script which mail's to the mail id mentioned in E-mail Tab...

View Article


How do I speed up this query by ignoring computers off the network faster?

Good afternoon,I am running the below script to query the entire domain for local admins. Could anyone reccomend a way to speed this up by more quickly skipping computers that aren't on the network?...

View Article

How would I create a simple script that does these specific things?

I am trying to create a script that does these few simple task but I can't seem to compile all the cmdlets together into one. I can pick one task out and have a command for it but I want one script to...

View Article


Copy files with owner rights problem :/

Hello together,here's a short description of my problem:We've got a fileserver with several folders and mapped drives (e.g. home, dep, etc.) and we're about to move all files to a new storagesystem....

View Article

Manually running a .ps1 in an administrator (elevated) shell

I have a seemingly straightforward question: How can I manually run a .ps1 script on Server 2012 R2 and have it open in an administrator elevated shell?  I am right clicking and clicking "Run with...

View Article


How to use PowerShell to find files created in the last 15 min and bigger...

Hi! I am trying to write to a text file, the files created in the last 15 min and bigger than 5KBI have created this PowerShell script but it's not working. Can somebody help me with...

View Article

Need to copy files to path that contains a wildcard!??!

Afternoon,I am attempting to copy a set of files to multiple computers on the network (files are at a dfs link, no issue there).The destination path on each computer is either:"\\$computer\c$\Program...

View Article

I want to count the elements in the pipeline and also process them

The following script works, but only because I save the pipeline contents in a variable.  I would like to not have to save it - see below. The commented section is my most recent failure. (And BTW I...

View Article
Browsing all 15028 articles
Browse latest View live


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