I am trying to create an image of the windows VM by mounting the SCCM image capture tool to the VM and running the Image Capture Wizard from the Removal Storage (D drive) where the image capture tool was attached.
I am aware of the manual steps that I have to go through of the image capture wizard but I want to script these steps. Is there a command line / powershell way to automate these where I can enter the destination , account name and password and get the image captured. Screenshots of the steps that I wish to automate.
The official way to get automated capture would be building a fully automated build and capture task sequence. The official ms documentation would be here but you can also find many more detailed unofficial guides for this like this one for example.
The idea here is that you deploy an operating system from source image, then automatically install updates, install all software you want via applications or programs, change all settings via scripts and automatically capture the output again as a sysprepped os image for further osd. The whole thing is completely unattended (in theory up to the point where you could configure your vm in a way that it would capture an image on every start)
If you want to only automate the capture but not the build you should be able to just use half of this TS, namely the capture part.
While this is fully automated and can be done unattended it is not per se really thought to be triggered via command line. You can probably script a task sequence trigger but it is not how the system was intended so I would not really recommend going this way if this is your first time using sccm.
Related
So I have created an xaml flow which clicks browser buttons downloads files and then does some basic operations. I setup a windows server and connected remotely to it and when I debug my process automation while staying on the screen it works smoothly, problem is that I can't keep my pc on forever so when I just minimize the file even though my system remains up and running:
The UI Path process kills as the button press times out. I was just curious to know if it's compulsory to keep screen up for the ui based process automation to run through or is there a way to initiate the process and then close the screen and let the system do its job?
This is the eror I get which is like first UI interaction:
Here are the steps I have performed:
Created an unattended robot with machine as the remote instance name.
Created an environment and connected with the robot created in step 1.
Setup UIPath Assistant using machine key and URL.
Published the files and then created the process in cloud console.
Ran it from cloud console.
The process faults at its first UI interaction. Even though it was running in unattended robot form.
Thanks in advance.
AFAIK this is intended by the licensing model of UiPath. So to solve the issue you need a license for the VM of your RDP connection that allows the unattended usage.
Another idea could be to start the process in the PIP (picture-in-picture) mode. But I have never tested that, so this might also not work.
But maybe you already have a license like that and could test that out.
These are our types:
Solution for UiPath Studio 20.4 or higher
For my Use Case Picture in Picture mode worked correctly. Thanks #kwoxer for the suggestions, though his answer was enough but I am adding it up here for those who may need future reference.
So If you're facing issues with automating user interactions in dynamic JavaScript Website over a cloud server that loads on demand (When you minimize or close your remote session, the process times out as it's not able to find the UI component), here are the simple steps to follow:
Goto Debug options on top and select picture in picture as shown below:
This basically lets the bot start the system from another node. Now when you run the system and even close the remote connection, the automation process including all sorts of UI interaction will work like charm. Please let me know in case someone faces the issues with the same. Would love to help!
In Microsoft Release Management 2013, in the Powershell Executor step we have configured a step to trigger a Windows batch file. This batch file will be executed on a different server, which also happens be our App Server. As an experiment, we have a simple test case to open IE, access the Google homepage URL and close the browser, a screenshot will also be captured. When we run the job from RM, the Selenium logs say that the browser is launched and the test was successful. But when we check the screenshot it is just a black screen. All this runs as the Windows service account user which is the same user that is running RM. This user has no log on privilege.
If I log into the App server with my own ID and execute the batch file manually, the screen shot is captured correctly.
I have read several online posts regarding the black screen. People have said that the screenshot is black because the screen is locked. Does this mean the RM Powershell executor step must be executed with some other credentials instead of service account? If yes, how do we do this? In some suggestions it was mentioned to install VNC. Is that relevant in this situation?
I'm fairly new to Windows. I've mostly been working in Linux systems and I've been requested to debug this issue here. Any pointers/guidance will be appreciated. Thank you!
The deployment agent does not run as an interactive service. You're going to have a lot of trouble getting it to directly invoke Selenium tests. I wrote a blog post a few years ago showing how I accomplished it. Basically, you use Selenium hub to execute the tests interactively from agent machines.
We finally got this to work.
We were invoking the testNG selenium tests within a batch script. This script was specified in RM within the Powershell Executor task. The main point to note is that, in the Powershell executor task, we must first have a cd (change directory) command to change into the directory where the Selenium scripts are. Then specify the complete path to the batch script to be executed in the same Powershell executor task. This cd command is very important. Without this, the batch script would be executed but the selenium step within that wouldn't work. You would just get a vague "configuration errors:1" in the final output.
We took care of website authentication using AutoIT for IE browser.
I need to perform some tasks related to workflow customization.
Currrently, I am using the Workflow Script Editor to add a vbscript.
Can the same thing be achieved without logging in to HP ALM and without using the script editor.
Say, I have the vbscript ready with me, can I place it in proper location inside HP ALM folder and register, if required..?
Can anybody help me with the steps to be performed to achieve the same functionality as the Workflow script editor does, but I need to do it manually without HP ALM log in ?
Short answer:
It is possible, but not into some ALM Folder on the client. You need to include a VBS file that would be stored on a shared folder. This is ugly and if you have the ALM Edition, it is better to rely on the template mechanism.
Long answer:
First of all, you need to understand how the Workflow Script works. The VBScript that you write with Workflow Script Editor is executed on the various computer of the connected Quality Center (or QC, TD, ALM, PC 11+, etc.) users. It is not executed on the server side.
In line with the first point The Workflow Script is called when some events are triggered. For example, when a field changes or when a user access a module, create a new object, etc. And again, I speak about a connected user and this piece of code is executed on its computer. Morvever Workflow Script can change some part of the web ui. For example, you can hide or show a field or make a field mandatory.
#TheBlastOne suggested to have a look at ALMĀ“s automation interface. But if OTA (Open Test Architecture) allows you to perform all actions that can be done manually on QC web user interface, it doesn't allow you to create a code that will be trigered by the actions of connected users. Because OTA is executed on your computer.
Can I place it in proper location inside HP ALM folder and register, if required..? You cannot easily modify most of the files in the repository of a project. ALM can emulate an FTP server to read the content of a project's repository but you cannot access anymore to the VB scripts since QC11. And remember that Workflow Script is project specific.
Well, easy answer: yes you can.
You have to activate ftp on admin site (just create the "FTP_PORT" parameter in Site Adminstration with the FTP port you want to use - 2121 or 21), and you can connect to the QC FTP Server with a client like Total Commander with :, and identify with your user and password, but I think you have to be Site Administrator - more information in QC documentation on Admin parameters: FTP_PORT.
Once connected, you'll se a tree with domains/projects, and for each project, different folders. The one for workflow scripts is ... "Scripts".
I am trying to install my Metro Application.
So, my question is:
Can I move sample pictures for my Application to KnownFolders.Pictures and Videos during installation ?
And, how can I create installation file for my application?
Thank you
With the installation mechanism for Windows Store apps in Windows 8, there is no need to write a setup or installation program. That will all be managed through the Windows Store once your app is published.
Since you can't write a setup program, to accomplish a similar goal, you can put some functionality in the app to execute when it's first run, then save a setting to indicate you've already performed the first run operations.
This would be where you would put your code for moving sample pictures.
However, your app will also need the appropriate permissions to access the KnownFolders location programmatically - check out this article for details. http://msdn.microsoft.com/en-us/library/windows/apps/Hh967755.aspx
It's also a good best practice to ask the user if it's OK to copy sample pictures to their Pictures library.
We have a script right now which our Windows users run on a Linux host by way of putty. From time to time the script produces a string that the user must copy and paste into a Windows application.
Without running a full-blown X display server on the Windows box, I'd like to modify the script so that the string is populated in the Windows user's copy/paste buffer automatically so that it's more convenient for the user and so that we reduce the error rate (the workflow is clumsy enough, we'd like to make it a little less so).
Here's what I don't consider solutions:
Running a full blown X display manager on the Windows side just for this (if there exists a nearly invisible utility that enables just this one feature that's a different story)
Make the user stop running Windows
Rewrite any other applications
I have full control over the Windows user's environment (can set up whatever putty settings I need to) as well as the Linux host and every node in the network between the two.
If I had to do this I'd probably grab the sources to putty and modify it to suit.
Failing that I don't think you'll be able to easily do this; except by writing a small script on the Linux box that will open a socket to the a small windows deamon and send the text across to be put into the Windows clipboard.
If the remote script doesn't need full terminal support but only does simple stdin/stdout operation, then you might be able to use plink to provide a simple text-only interface which can probably be scripted more easily than a full PuTTY window.
http://ericmason.net/2010/04/putty-ssh-windows-clipboard-integration/
This guy's script patches putty to just what was suggested above. I think it would be more elegant to have just a printer driver you can install in windows to get text to the clipboard, rather than patching putty, but this works!