19 Topics

Member Avatar for
Member Avatar for Alv45525

Hi, I would like to know if there is a CMD command line in order to get a computer name on which an AD user is logged on. For example, inputting the username and as result getting the computer name

Member Avatar for rproffitt
0
17
Member Avatar for catastrophe2

I have a table that contains some cubes with servers and active status (see attached image): note: CUBE1 is repeated intentionally. The idea is the same cube is getting synced from the same server 1 as a data source (process_server) onto different target servers (query_server; say server2 is in region …

Member Avatar for pinel
0
1K
Member Avatar for catastrophe2

I wrote a script that manages services on the server and starts/stops etc...depending on the Task in the csv file, as well as changes the startuptype, again depending on the start up type in the csv file. CSV file: > Server,Service,Startup Type,Task > server1,SQL Server Analysis Services (MSSQLSERVER),automatic,start > server2,"SQL …

Member Avatar for rproffitt
0
1K
Member Avatar for overwraith

I would like to be able to open a port on windows programatically. I don't care whether is power shell, or something else, but I would like it to be a script that I can simply run as I install a software program. I have no experience in this area, …

Member Avatar for rproffitt
0
952
Member Avatar for Spyderbane

I have a powershell script from PRTG that will ssh into a juniper device and allow me to exicute a command. I am trying to run "Request System Storage Cleanup" which works but the problem is the session asks for conformation of the clean up. Adding a carriage return and …

Member Avatar for rproffitt
0
675
Member Avatar for RudyM

Hi all, I'm trying to replace text in a CSV. The CSV line looks something like this: "Field One","Field Two","Field Three","Field Four" So I tried something like: (Get-Content $csvfile) -replace "Field`n", "Field" | Set-Content $csvfile

Member Avatar for RudyM
0
377
Member Avatar for md.Rayad

I have a oracle query and i would like to run it by powershell using ODP.Net. Below is the query. set pagesize 100 set linesize 200 break on report compute sum of free_mb on report compute sum of act_size on report compute sum of used_mb on report col %used format …

0
241
Member Avatar for md.Rayad

I have a powershell script in that script i am using datagridview. My script is working fine. All looks ok to me. My issue is i want to get the first column value of selected row. To fulfill this i need to add event (cell click/cell content click/cell mouse click). …

0
252
Member Avatar for Radio2006

Hello all, The issue I am having involves a user that uses a CAC to log in to a network. When the account is created, a 10-digit number printed on the CAC is associated with the users account and replaces their User Logon Name in ADUC. This users number was …

Member Avatar for Radio2006
0
2K
Member Avatar for jjorgensen626

Hi Everyone, Wanted to share a bit on this subject as I've had to recently make some of these changes. Along my way I found a few sites that basically suggested moving all mailboxes off the database, dismount, delete and create a new database. Simple enough, however I didn't want …

0
253
Member Avatar for Martin_3

Hi guys, I have some C# code in my Powershell script and in that code I have a global variable. How can I access my variable from the powershell code ? $source = @' using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; …

Member Avatar for BogdanCov
0
262
Member Avatar for DeanMSands3

Hey, DaniWeb! I need your opinions. I'm looking to expand my skillset, particularly in the Windows department. On a scale of "Eh, maybe later" to "Do it! Do it now!" what is your opinion on the importance of learning PowerShell as opposed to another life skill like Haskell, Mandarin Chinese, …

Member Avatar for bogenbroom
0
196
Member Avatar for methuselah90

I'm currently pulling out information from column B in an Excel worksheet + the worksheet name. How would I go about pulling information from column J (which has the same start row/end row as the information pulled out from column B) in the same worksheet and assigning it to the …

0
149
Member Avatar for k2k

Today I have finally made up my mind to quit bat scripting and go for powershell... I need to do a quick script bascially trying to looping through a command output.. can anyone shed some light? i tried foreach ($col in 'app-command -argument') { echo $col } well, guess my …

0
171
Member Avatar for HTMLperson5

Well, as you might know, when you are attempting to run a script from poweshell and have not used: Get-ExecutionPolicy You will get File C:\scripts\test.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get- help about_signing" for more details. At line:1 char:19 + …

Member Avatar for khansen46
0
4K
Member Avatar for stevo7624

I am new to Powershell and I am trying to get an understanding of it through borrowing script and making it work for my system. I have a script that I thought would take files from a target folder and zip them into a destination folder. It is creating zip …

Member Avatar for stevo7624
0
283
Member Avatar for Proloe

Hello, So I'm attempting to do a bulk creation of users into Active Directory (Server 2008) using Powershell. I have a script but every time it runs it throws a exception error. I have tried to go through and find what is wrong, but I am having little luck. Any …

0
196
Member Avatar for stevetaylor15

Hi guys, I want to run the following in a c# loop but I just don't know how to pass a multi value for a parameter with a comma. The actual cmdlet would be below and does work in exchange powershell: Set-CalendarProcessing –ResourceDelegates [email]jonDoe@test.com,johnnydoe@test.com[/email] -identity [email]testroom@test.com[/email] –AutomateProcessing AutoUpdate I know …

Member Avatar for paperless
0
298
Member Avatar for stevetaylor15

hi guys, i'm running a recordset read as below and within that running commands against a 2010 exchange server. i wanted to know what you thnk the fastest method there is of doing this?Is the best mehod to put the connection to the exchange server outside the rdr.read, and then …

Member Avatar for paperless
0
242

The End.