Jump to content

Recommended Posts

Posted (edited)

Hello All,

 

I need to create a folder and drop a file into it on all teacher's PCs. I am running a CC4 network on Server 2008 R2. Can I do this in the RM Management Console or will I have to use powershell? If I can do it via RMMC I'd prefer that as I can make it part of the default assignment. Otherwise I will have to adjust and run a script each rebuild or new PC!

 

I have looked at this on SpiceWorks:

# Point the script to the text file
$Computers = Read-Host "Enter Location Of TXT File"

# sets the varible for the file location ei c:\temp\ThisFile.exe
$Source = Read-Host "Enter File Source"

# sets the varible for the file destination
$Destination = Read-Host "Enter File destination (windows\temp)"

# displays the computer names on screen
Get-Content $Computers | foreach {Copy-Item $Source -Destination \\$_\c$\$Destination}

 

This along the right lines for inserting the file? How would I create the folder though within the same script using the same list of PCs!?

 

Many thanks, TomHD

Edited by TomHD
Posted
I'd try to use standard Group Policy Preference for this if RM will let you. Not experienced an RM network since version 3 so it has been a while. I remember that version 3 didn't like you doing anything policy wise outside of it's interface back then.
  • Thanks 1
Posted (edited)

@TomHD

 

Do you wish for the staff to have access to this txt file?

 

If so why put it on every computer when you can just make a shared folder through the RMMC and allow that group access and drop the txt file in there?

 

Or am I reading your requirements wrong? :)

Edited by bossman
  • Thanks 1
Posted

It's actually a file related to software licensing. I have spoken with the support team for the software and there is no way to sort the licensing during the RM package build process. The problem occurs as staff are blocked by GPO from writing this file. Therefore I need to deliver it via other means :)

 

Regarding doing GPO stuff outside of RM I'd prefer not to complicate the installation but if its the only way then so be it :) I will make a call to RM in the morning, just they take a little while to get back so thought I'd ask here first :)

Posted

You could create a basic CC3 package to copy the file over and import it into the RMMC.

 

It should work but I've not had the pleasure of actually using CC4.

  • Thanks 1
Posted (edited)

@TomHD

 

I use a program which is free to use called PDQ deploy for deploying complex software and runtimes plus it does just what you want and for free, you can subscribe and get the full program for around £300 which I feel is well worth it.

 

It would literally take around 20 seconds to do what you want with this software, look it up, I used it to deploy a file for our teachers so they could use 4Matrix as it required a file to update the program, done in 20 seconds.

 

Try it out Deploy Software with PDQ Deploy

 

Or you could create a batch file to create a folder and install the required file within that folder and import as a CC3 application.

Edited by bossman
  • Thanks 1
Posted (edited)

I ended up making a batch file that creates the Program Data directory and copies the license file from a share on the DC. Imported as CC3 package and wallah! Although RMMC says the package isn't installed the license file is there!? I don't care as long as it works for the end user!

 

Many thanks for the ideas :D

Edited by TomHD
  • Thanks 1
Posted

@TomHD

 

Great stuff! Glad you got it sorted :)

 

Please try PDQ deploy even for a short period you will find it does things like this so easily and if you decide to purchase it is just peanuts for something which is so powerful.

 

Have a good day :)

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...