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

CREATING TUTORIALS PAGES USING CMD.EXE AS THE VIEWER.

Hello all.I apologize in advance if this question comes off as ignorant to any of you but, I'm pretty new at scripting..,having a lot of fun with it so i'm barreling ahead!I've been combining all the...

View Article


HTA Always on Top

Hi all, I've got a lovely HTA that is intended to be displayed on all our users screens at Windows startup, as defined by a GPO.  While everything is working fine, I'd really like to have it as an...

View Article


regex - crossing the t and dotting the i

Hey,So I am working on a script to remove groups from a user's memberof list. I have devised the following filtered regex:* (^users|domain users$)|legal|litigationThe objective is to ignore the groups...

View Article

Using Powershell to export SQL table data to text files

Re: Using Powershell to export SQL table data to text filesDisclaimer ... Powershell ignorant. I am trying to write a powershell script to export SQL table data (exact tables will be the result of a...

View Article

"System.DateTime". Error: "String was not recognized as a valid DateTime."

Hi, EveroneTry http://gallery.technet.microsoft.com/scriptcenter/bb94b422-eb9e-4c53-a454-f7da6ddfb5d6but  [PS] F:\MSG>.\1.ps1 Cannot convert value "27.08.2014" to type "System.DateTime". Error:...

View Article


Automatically move files + make a .txt file

Hello, not sure if I'm at the right place but I'll give it a go:I receive files in a certain folder structure. In there are several folders with files. Regardless of the folders, I would like to...

View Article

Script/Batch to remove a value from REG_MULTI_SZ

I am looking to do something that one would think is so simple, but am having trouble finding my answer. The REG_MULTI_SZ Key...

View Article

Bulk assigning Office 365 licenses using PowerShell

I've completed this in the past successfully but I'm running into some issues this time.  Below is the PowerShell script I'm running:Connect-MSOLService -Credential $adminCredential $AccountSkuId =...

View Article


Prevent DateTime from being converted to 24-hour format

I have a script that grabs event log data and send the results in an email.  The time stamp of an event log entry shows up correctly in non-24hour format...for example 2:30 PM and not 14:30.However...

View Article


Discover .pst files and copy them to a network share

Hi Guys, I would like to ask for help in the following situation. I am charged with the task of collecting .pst files from all network computers in the company and copying them to a network share. I...

View Article

Looping not working when exporting the result to csv

Hi Buddies,I am working on a basic script that imports group list from a text file and then check if the group having no members.import-csv .\groups.txt | foreach-object { Get-ADGroup -identity...

View Article

Distribution List and Member of tab

Hi everybody.I'm not a powershell god ;) and need your  help. I have to list all items from "member of" tab in Distribution List.I have searched for resolution but I didn't find anything. All scripts...

View Article

WMI-Filter on Group Membership doesn't work

Hello everybody, I have a Problem which maybe one of you can solve. I have a terminalserver which is in an AD-Group (not OU). The AD-Group is called "tsServer". The domain name is "test1" and I try to...

View Article


PowerShell Script - Remove writing permissions for certain groups in a folder...

Hello everyone!We would like to remove the writing permissions for all security groups that contain normal ad users in our archive folder structure.I would like to explain the situation a bit more...

View Article

I need to modify the root URL but leave the rest in Favorites.

We're changing several SharePoint web sites to use SSL and FQDN only.Every user has at least one of the sites in their favorites folder.I need to change the base URL from http://{netbios...

View Article


Powershell Script for Website Availability Monitoring / URL Monitoring

I cannot get the URLList.txt syntax to open from powershell.Using notepad this is the syntax that I am using for the script to run$uri=http://www.example.comWhen I run this command the powershell...

View Article

Change DNS only on NIC's with a certain IP

In my enviroment i have several forests that are setup as different domains. We are currently in the process of upgrading our DC's to 2012, these will also be my DNS servers. My servers have different...

View Article


Get adapter name as variable

This batch file works, but the adapter name has to be hard coded, is there a way to put the name into a variable from netsh so that the code can be generic?@echo off echo Please wait ... Enabling...

View Article

Powershell , Get-content, Import Txt File into an array

Hello,So i am trying to mimic an array that works, by import a txt file containing info.. but it is not working.This works....# Filter for an array of values IE: choose muipliple items.... in one...

View Article

PowerShell to Dynamically download SQL table data to csv

Re: PowerShell to Dynamically download SQL table data to csvI worked on my first powershell today. My goal is to dynamically download SQL Table data to csv files. There is a ifs_ExportTables that is a...

View Article
Browsing all 15028 articles
Browse latest View live


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