Code Snippets
Issue In Powershell all the Autodesk Vault users of a certain group should be determined via API. Solution The following function will return all user...
Wed, 29 Nov, 2017 at 2:41 PM
Issue A file should be copied to a different windows directory and the directory should be created if it does not exist. Solution The Copy-Item comman...
Wed, 29 Nov, 2017 at 2:30 PM
Issue The name of a file without the extension is needed. Solution The method GetFileNameWithoutExtension() from the .NET class System.IO.Path can be ...
Wed, 29 Nov, 2017 at 2:34 PM
Description A locally saved file should be printed using the windows default printer. Solution Use the Start-Process commandlet with the -Verb Print o...
Fri, 17 Nov, 2017 at 11:15 AM
Description Set a new windows default printer via Powershell. Solution To find the new printer the Get-WmiObject commandlet with the -Class Win32_Prin...
Wed, 29 Nov, 2017 at 2:37 PM
Description Execute commands and retrieve data from an SQL server using PowerShell. Solution The .NET classes provided by the System.Data.SqlClient na...
Wed, 29 Nov, 2017 at 2:39 PM
Issue A Vault file should be downloaded with a rule set that is not possible in Save-VaultFile. Solution function Get-VdfFile{
Param(
[...
Wed, 29 Nov, 2017 at 11:49 AM
Issue A XML file should be generated based on data from Vault Solution $file = Get-VaultFile -Properties @{ "Name" = "Catch Assembly....
Thu, 27 Sep, 2018 at 4:37 PM
Issue A script is not working as expected or is throwing errors. A way to analyze the script is needed because the cause is not clear. Solution Many s...
Wed, 25 Nov, 2020 at 10:17 AM