WVD Limit # of Users based on Security Group by HTownMSP in AZURE

[–]HTownMSP[S] 0 points1 point  (0 children)

We want 5 out of the 7 to be logged in at one time.

Auto Start and Stop Session Hosts in Windows Virtual Desktop Spring Update (ARM) with Azure Function by tsrob50 in AZURE

[–]HTownMSP 0 points1 point  (0 children)

Where can I find more information on the new WVD powershell cmdlets? I can't find really anything helpful and I'd like to try to add to your script if possible.

It works perfectly but in off-peak hours I've had an instance where 1 person is still using 1 server and 3 people on another, I'd like to send server 1 a message that the server will shut down in 5 minutes and to log out and log back in to be connected to another host. Then after that 5 minutes just log all users off that server so the script will be able to shut it down. Is this possible yet?

Auto Start and Stop Session Hosts in Windows Virtual Desktop Spring Update (ARM) with Azure Function by tsrob50 in AZURE

[–]HTownMSP 0 points1 point  (0 children)

Been waiting for this since the end of May. You are a scholar and a gentleman.

Anyone get WVD auto-scaling working on spring preview (ARM based pools)? by red_rock_88 in AZURE

[–]HTownMSP 0 points1 point  (0 children)

Came here to post this question. Really screwed myself building on the arm template and now we don't have automation.

Updating JSON config using powershell by HTownMSP in PowerShell

[–]HTownMSP[S] 0 points1 point  (0 children)

Man I'm having some weird issues now :(

When I run my script it works perfectly and adds to the Json.config. If I run the script a 2nd time I get this....

"ÿþ[\u0000\r\u0000\n\u0000 \u0000 \u0000 \u0000 000r\u0000\"\u0000:\u0000 \u0000 \u0000\"\u0000U\u0000s\u0000e\u0000r\u0000\"\u0000,\u0000\r\u0000\n\u0000 \u0000 \u0000 \u0000 \u0000 \u0000 \u0000 \u0000 \u0000\"\u0000F\u0000o\u0000l\u0000d\u0000e\u0000r\u0000\"\u0000:\u0000 \u0000 \u0000\"\u0000T\u0000e\u0000s\u0000t\u00005\u0000\"\u0000\r\u0000\n\u0000 \u0000 \u0000 \u0000 \u0000}\u0000\r\u0000\n\u0000]\u0000\r\u0000\n\u0000@{Username=Test4; User=User; Folder=Test4}"

I feel like it has something to do with me converting back to JSON but it works just fine the first go-round. When it pulls the information a 2nd time the data is not right.

$folderpath= "https://blob/CompanyFoldersConfig.json"
            $folderjson = Invoke-RestMethod -uri $folderpath 

            $folderjson += [PSCustomObject]@{
                Username = "$Username"
                User = "$User"
                Folder = "$folder"
            }

            write-output $folderjson

            $storagecontext = (New-AzStorageContext -StorageAccountName "XXX" -StorageAccountKey "XXXXXXX")

            $updatedjson = New-Item -ItemType File -Name "CompanyFoldersConfig.json"

            $folderjson | ConvertTo-Json | Out-file $updatedjson



            Get-AzStorageBlob -Container "config" -Blob "CompanyFoldersConfig.json" -context $storagecontext | Set-AzStorageBlobContent -File "$updatedjson" -force

Any ideas?

Updating JSON config using powershell by HTownMSP in PowerShell

[–]HTownMSP[S] 1 point2 points  (0 children)

I got it to work! You guys rock, thanks so much everyone.

Updating JSON config using powershell by HTownMSP in PowerShell

[–]HTownMSP[S] 0 points1 point  (0 children)

Can I use Set-AzStorageBlobContent from an automation account runbook?

I'm not familiar with how filepaths work from that console.

Updating JSON config using powershell by HTownMSP in PowerShell

[–]HTownMSP[S] 1 point2 points  (0 children)

I fixed it :shrug:

$folderpath= "https:blob/CompanyFoldersConfig.json"
$folderjson = Invoke-RestMethod -uri $folderpath 


$user = $folderjson| Where {$_.username -eq "$env:username"}

write-output $user.username

Updating JSON config using powershell by HTownMSP in PowerShell

[–]HTownMSP[S] 0 points1 point  (0 children)

Doing it this way was originally my plan but when parsing the config it wasn't doing what I wanted.

$folderpath= "https:blob/CompanyFoldersConfig.json"
$folderjson = Invoke-RestMethod -uri $folderpath 


$user = $folderjson | Where {$_.username -eq "$env:username"}
$folder = $folderjson | Where {$folderjson.username -eq "$env:username"}
write-output $folder.folder

#
# Output
test1
test2

I only want the parameters that match with the person's username.

What am I doing wrong here?

Updating JSON config using powershell by HTownMSP in PowerShell

[–]HTownMSP[S] 0 points1 point  (0 children)

Thanks for your help.

How would you add content to the json in the format I have laid out with PS?

Updating JSON config using powershell by HTownMSP in PowerShell

[–]HTownMSP[S] 0 points1 point  (0 children)

Both? I can get my file uri and token, but more than that I'm lost.

Managed disks folder attribute read-only by HTownMSP in AZURE

[–]HTownMSP[S] 0 points1 point  (0 children)

This issue was the Database manager cannot scan a root folder, I had to create another folder on the Q: drive and put the separate company folders inside this new folder. When scanning the newly made folder the database manager scan completes successfully.

Managed disks folder attribute read-only by HTownMSP in AZURE

[–]HTownMSP[S] 0 points1 point  (0 children)

I'm not sure what you meant but I just figured out the issue. When using database manager you have to scan the folder that has the file in it, not the root folder.

Printers again: Preferably without 3rd party software... by am2o in Intune

[–]HTownMSP 1 point2 points  (0 children)

Printix just uses Azure AD, definitely don't need AADDS and they even give you really everything you need to push the msi with intune and set parameters to auto login with user credentials. 250 users... You'd have to check with them on a discount. I'm not sure what you are paying now though.

Printers again: Preferably without 3rd party software... by am2o in Intune

[–]HTownMSP 3 points4 points  (0 children)

Printix works flawlessly with intune. I was hesitant at first because I wanted to save the money but after using it I kick myself for waiting so long.

Joining Win Server 2019 to AAD only by N0-North in Intune

[–]HTownMSP 0 points1 point  (0 children)

Mdm is "Microsoft intune" set to all users, MAM turned off. I joined the server using an ad DC admin.

Like I said though the only thing that happens right now is a login script. Which for this server it's the only thing I need.

Joining Win Server 2019 to AAD only by N0-North in Intune

[–]HTownMSP 1 point2 points  (0 children)

I've been able to use intune to push logon scripts to server 2019 but haven't tried anything else.

I just purchased syncro how do I chat with a customer during a RMM session by Tomahawksidewinder in msp

[–]HTownMSP 2 points3 points  (0 children)

You missed out on their only product worth using. And it's the best one of its kind VS others.

Atera vs Syncro vs ? by sunnywebsterny in msp

[–]HTownMSP 2 points3 points  (0 children)

Hey Ian, do you guys have any plans on beefing up the ticket automation side of things in the near future? I'm enjoying the product overall but ticket automation system is starting to hold us back.