Category Archives: develop

Pass arguments to the PowerShell script in PowerShell ISE

Use the command pane. Open the script file in the ISE editor, set the breakpoints (F9). Then in the command pane type a command invoking this script with required parameters. I do not think there is another (built-in) way of … Continue reading

Posted in develop | Tagged , , | Leave a comment

Add a repository to SEL

Reference https://code.visualstudio.com/docs/setup/linux Running VS Code on Linux Installation openSUSE and SLE based distributions The yum repository above also works for openSUSE and SLE based systems, the following script will install the key and repository: sudo rpm –import https://packages.microsoft.com/keys/microsoft.asc sudo sh … Continue reading

Posted in develop, linux | Tagged , , , | Leave a comment

PowerShell Culture and Help

https://powershell.org/forums/topic/invoke-command-remove-pscomputername/ https://powershellserveradmin.wordpress.com/2015/01/09/get-help-vs-help/ https://social.technet.microsoft.com/Forums/Lync/en-US/dea5d51d-0757-4916-86d8-c0b12ef55153/how-to-exclude-property-from-result-returned-by-powershell-command-?forum=sharepointadminprevious Aliases https://blogs.technet.microsoft.com/heyscriptingguy/2011/05/01/best-practice-for-using-aliases-in-powershell-scripts/ PowerShell session culture https://p0w3rsh3ll.wordpress.com/2012/01/22/working-with-system-locale-and-user-locale/ ## Test remote PS call from JACK on RHINO $computerName = “lsc561.tw.ibm.com” $remoteUser = “Administrator” $remotePassword = “!Sp@-81#” $credential = New-Object System.Management.Automation.PSCredential($remoteUser, (ConvertTo-SecureString $remotePassword -AsPlainText -Force)) invoke-command -ComputerName $computerName -Credential $credential … Continue reading

Posted in develop, windows | Tagged , , | Leave a comment

How to set the programming environment of Visual Studio

Q: I have set the programming environment of Visual Studio into C#. Now I want to change it to VC++. A: To change the environment from C# to C++, please go to Tools menu >> Import and Export Settings >> … Continue reading

Posted in develop | Tagged , | Leave a comment

Dot.Net and PowerShell

PS C:\Users\IBM_ADMIN> [IO.Path]::GetTempPath() C:\windows\TEMP\

Posted in develop | Tagged , | Leave a comment

SQL Connectivity Behavior

Connecting over the Network By default, the default protocol for SQL Server clients is TCP/IP. If the connection cannot be made using TCP/IP, the other enabled protocols are attempted. A shared memory connection cannot be made over a network. Use … Continue reading

Posted in develop | Tagged , | Leave a comment

Set an environment variable to the current working directory

The current directory is in the “shadow” variable cd called var. set “var=%cd%” set var

Posted in develop | Tagged , | Leave a comment